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 / Reference model driven...
Power Apps
Answered

Reference model driven app root url from a custom page/canvas app

(0) ShareShare
ReportReport
Posted on by 293

I would like to reference the root url in a custom page so I can open/download an image that is stored against a custom activity. I am using this custom page in multiple environments so my root url changes. Is there a power fx function that will return the root url? 

 

I want to use Launch for something like this:

 

Launch("[my_rooturl].crm.dynamics.com/api/data/v9.0/slp_observations(230c1204-4f61-ed11-9562-000d3a4d6049)/slp_attachment/$value")

 

 

The only thing I can think of is to save the root url as an environmental variable.

 

Has anyone encountered this and find a solution?

Categories:
  • Verified answer
    KASCHN Profile Picture
    293 on at

    As suggested above, adding an environmental variable works well, especially when using ALM pipeline advancement.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard