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 / Deep linking help- not...
Power Apps
Answered

Deep linking help- not going to correct record

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

Hi,

 

I am having trouble deep linking. 

 

APP - Start Screen - If(IsBlank(Param("recordID")),BrowseScreen1,EditScreen1)

 

APP - OnStart - Set(gblRecordID,Value(Param("recordID")))

 

BrowseGallery1 - OnSelect - EditForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None); Set(gblRecordID, ThisItem.ID);

 

EditForm1 - OnSucess -  

 

Office365Outlook.SendEmailV2("testgmail@gmail.com","Please review",
"Hi "," &

"<br><br>please review review:<br><br>

Please click
<a href=url&recordID=" & gblRecordID & "> HERE <a/> to review and action this item.

<br><br>
Thanks.

"

 

IF i do a text label for record ID, it looks like it is just taking the last Record I access. But if I am doing a new submision to my EditForm, shouldnt the gblrecordID be a new one?

 

Kind of confused here. Please help.

 

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,641 Moderator on at

    @wonka1234 

    What is the Form Item property?

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

    @EddieE  EditForm Item Property - LookUp('Data Source',ID=gblRecordID)

  • Verified answer
    EddieE Profile Picture
    4,641 Moderator on at

    @wonka1234 

    Ok, thanks. You could try this in the OnSuccess

    // set gblRecordID
    Set( gblRecordID, Form1.LastSubmit.ID);
    
    // your current code
    Office365Outlook.SendEmailV2("testgmail@gmail.com","Please review",
    "Hi "," &
    
    "<br><br>please review review:<br><br>
    
    Please click
    <a href=url&recordID=" & gblRecordID & "> HERE <a/> to review and action this item.
    
    <br><br>
    Thanks.
    
    "

     

     

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

    @EddieE  getting an error on - MyEditForm On Success - Set( gblRecordID, Editform1.LastSubmit.ID);

     

    invalid use of '.'

     

     

  • EddieE Profile Picture
    4,641 Moderator on at

    @wonka1234 

    Is there a missing bracket in the code I posted? I just copied your code but it looks like there's a missing ')' at the email of the send email code?

     

    The code snippet Form1.LastSubmit.ID should work because I tested it.

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

    what seems to work is this - Set(gblRecordID, Self.LastSubmit.ID);

     

    any idea as to why? lol

  • EddieE Profile Picture
    4,641 Moderator on at

    Nope, no idea haha.

     

    I tested it on one of my forms and my method worked fine. I say if it works, go with it and move on 🙂 

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 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard