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 / How to Provide URL Par...
Power Apps
Answered

How to Provide URL Parameters to Studio

(0) ShareShare
ReportReport
Posted on by 156 Most Valuable Professional

Is there a way to pass Url Paramteres to the Canvas App Studio so the Params() function can access the params?  I have a canvas app that is opened from another canvas app via the Launch function.  When this is called, a recordId is passed via a URL parameter, then when the canvas app is opened, it knows the context via the record id.  This works great when "playing" the app and launching it from one studio to the other, but if I just attempt to edit the app that requires the URL Parameter, I receive an error since the URL is missing.  Is there a way to be able to pass URL Parameters into the Studio Experience?  If not, is there a way in order for the app to know if it's running within the context of the Studio, so I can default the record id?

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Dlabar 

    I just finished developing an app that had this very same issue when testing.

     

    Is there a way to be able to pass URL Parameters into the Studio Experience?

    Not from what I can tell.  After the app opens in Studio mode the URL is redirected to something like this (https://us.create.powerapps.com/studio/#) and it clears any parameters you might try to input 

     

    If not, is there a way in order for the app to know if it's running within the context of the Studio, so I can default the record id?

    I have an idea for a creative solution here.  When an app opens in Play mode the URL contains a parameter called tenantID.  But when it opens in Studio mode there is no tenantID in the URL.  Therefore we can use the value of tenantID as a check on which mode the app is currently in.

     

    To test my idea I suggest you put this code in a new label on the first screen your app opens.  Save & Publish and then try opening the app via Play and via Studio.

    If(IsBlank(Param("tenantId")),"Studio Mode","Play Mode")

     

    Let me know what you think of this.

     

    ---
    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."

  • mdevaney Profile Picture
    29,993 Moderator on at
    @Dlabar
    Did this idea work for you? Please let me know.
  • Daryl LaBar Profile Picture
    156 Most Valuable Professional on at

    Unfortunately, this doesn't work for apps in the PowerApps android app.  I'm thinking I'll use the SaveData/LoadData functions to be able to determine if I'm in a tablet.

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard