web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamic Sitemap URL
Power Apps
Answered

Dynamic Sitemap URL

(0) ShareShare
ReportReport
Posted on by 311

In the sitemap for my model-driven app, I would like to add a "URL" subarea and be able to change the URL address dynamically using the value of an environment variable.  Can anyone think of a way to do this without just customizing the sitemap for every environment?

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @tschopp , 

     

    How about a CustomPage with a PCF on it containing an IFrame which you can set dynamically from the environment variable?

  • tschopp Profile Picture
    311 on at

    Hi @DianaBirkelbach ,

     

    The dynamic URL will be for an external website that should open in a new tab/window, like how it works if I hard-code a sitemap URL.  I want the user to stay on the current page in the originating window.  Correct me if I'm wrong, but I think you're idea would change the current page to display the custom page.

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    HI @tschopp , 

     

    My idea would place an IFrame inside the "div" provided to the PCF, so basically show the Iframe on the whole page in the sitemap. But you need a container for the PCF, so that's why I needed the CustomPage for that.

     

    A while ago I would have proposed an HTML WebResource, where some javascript code runs in onLoad and would replace the location of an IFrame. In the new app designer I don't see the HTMLWebResource option, but you could use a Dashboard for this.

    So the second idea would be to use a dashboard, place a HTMLWebResource on it. Inside the HTMLWebResource you would have only an IFrame, and you use some script to redirect the IFrame Url.

     

     

  • tschopp Profile Picture
    311 on at

    @DianaBirkelbach - I think I get where you're going.  I'll give that a try...  Thanks!

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    @tschopp, can vote for the idea/feature request here 🙂 https://ideas.powerapps.com/d365community/idea/1a47a413-4873-ee11-a81c-0022484e61f5 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
Vish WR Profile Picture

Vish WR 482

#3
WarrenBelz Profile Picture

WarrenBelz 384 Most Valuable Professional

Last 30 days Overall leaderboard