cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cooper01
Continued Contributor
Continued Contributor

Best way to manage web resources for different environments?

I have an unmanaged (dev environment) and a managed (prod) version of a solution. The solution contains a web resource which display a canvas app within a model driven app. The web resource script is different in each environment because the app has a different app ID/URL.

 

I can edit the web resource in my managed solution and update the script to point to the prod app ID. Is there a better way to go about this though so I'm not customizing within a managed solution?

1 ACCEPTED SOLUTION

Accepted Solutions
DianaBirkelbach
Super User
Super User

Hi @Cooper01 , 

 

You could save the app id in an environment variable. The webResource can read it from there.

Here more about using env var in solution transport: https://docs.microsoft.com/en-us/powerapps/maker/data-platform/EnvironmentVariables?WT.mc_id=BA-MVP-...

 

Hope this helps!

Kind regards,

Diana

 

 

 

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

1 REPLY 1
DianaBirkelbach
Super User
Super User

Hi @Cooper01 , 

 

You could save the app id in an environment variable. The webResource can read it from there.

Here more about using env var in solution transport: https://docs.microsoft.com/en-us/powerapps/maker/data-platform/EnvironmentVariables?WT.mc_id=BA-MVP-...

 

Hope this helps!

Kind regards,

Diana

 

 

 

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (3,041)