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 / Set Variable when Deep...
Power Apps
Unanswered

Set Variable when Deep Linking

(0) ShareShare
ReportReport
Posted on by 920 Super User 2024 Season 1

Hi,

 

I have a deep link  that gets sent via Email (based on a Onselect of a button)- 

 

https://apps.powerapps.com/URL&recordID= & gblRecordID

which gblRecordID is a variable and brings the person who clicks the link in the email to the record.

 

Can I set a variable in the Link? Or should I set it on the OnSelect button ?

 

I want to set my variable -

Set(varFormMode,"edit")

so I can control the FormMode View and Edits.

 

Please help!

 

Categories:
I have the same question (0)
  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    For your deep linking, I assume you already have code in the app start event to enable this? Something like: 

     

    If(Not(IsBlank(Param("recordID")))....

     

    If so, just add the extra line to set the variable there (so set the variable, and then navigate to the target page). If needed, add another value to the url so you can retrieve it via the Params function. 

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @Mike2500  in my app, startscreen property i have

     

     

    If(
     IsBlank(Param("recordID")),
     Homepage,
     EditScreen1
    )

     

     

    how would i edit this to include 

     

    Set(varFormMode, "edit")

     

     

    so when they link to the editscreen1, it goes into "edit"

  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    I see you have the deep linking logic in the start screen. You could add a similar if statement to the app start event to set the variable. (so the startscreen will set the initial screen the user sees, while the app start will set the variables that are needed.)

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @Mike2500  thanks ive added - Set(varFormMode, "edit") to the  OnStart property. ill give it a test and reply in abit.

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 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard