Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

Updating Power Pages between environments

(0) ShareShare
ReportReport
Posted on by 35
Hello.
 
I have a website that exists in a solution. This solution exists in enviornments Dev and Test. 
 
In Dev I have made changes to the website, the forms, and the custom javascripts of the forms via power pages management.
 
When I imported the solution from dev to test, all of my dataverse tables were updated, but the custom javascript put into dev did not make it through to test. Also an image that worked in DEV no longer shows up on the website in the Test enviornment.
 
Can anyone let me know how to get the configurations from power pages management from one enviornment to another? Remember that my solution already exists in test and i'm just merging the changes everytime, which usually updates things just fine.
 
The easiest way I can think about going about this is deleting the solution and the website from the test solution before importing. and then doing the same in prod but I would hate to delete the website in Prod just to reupload it with my changes 
 
Categories:
  • Verified answer
    TarunReddy Profile Picture
    22 on at
    Updating Power Pages between environments
    Hello,
     
    From the description, I can think of two different problems.
     
    1. Your Custom JavaScript and the Image are not part of the solution. Check your solution and check the 'Site Components'. Since you added custom javascript to forms, check the basic form is part of site component. If you don't find them there, you need to add them manually. 
     
      Here are the steps: 
       Go to solution -> 'Add existing' -> 'More' -> 'Other' -> Site Component.
     
       Select the components and click on 'Add'.
     
     
    If you see the image and the basic form in the 'Site Component' section and still doesn't show up on test environment, then this is a solution problem. I have faced issued of missing and duplicate components when power platform pipelines are used to migrate. Please proceed to the second solution, which is a recommended method by microsoft to migrate Power Pages.
     
    2. Use Power Platform CLI to migrate your site.
     
        Here's the official documentation: Migrate Power Pages
       
        Here are the breif steps: 
    # Authenticate
    pac auth create --url https://your-dev-env.crm.dynamics.com
    
    # Download website content from Dev
    pac paportal download --path "C:\DevPortal" --websiteId <DevWebsiteId>
    
    # Switch to Test
    pac auth create --url https://your-test-env.crm.dynamics.com
    
    # Upload to Test
    pac paportal upload --path "C:\DevPortal"
    

     
    Try these out.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >