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 / Email Link takes the u...
Power Apps
Answered

Email Link takes the user to a specific screen

(0) ShareShare
ReportReport
Posted on by 78

Hello everyone,

 

I have been trying to get this functionality to work but I am having issues:

 

Data Source: SharePoint List. I currently have multiple screens in my app. All the below screens are built as a separate Canvas App and not through SharePoint Power Apps option.

 

Filter Screen: Has drop downs, gallery with some details. When a user clicks on an item in the gallery, it takes them to the next page which is 'Display screen' - which provides additional details of the item based on the selected item in the gallery. This Display page has an Edit Icon and will take them to the 'Edit Screen' which will look just like the Display Screen but has Edit capabilities and Save. The users will be able to go tp the incident that they want using this process. This has been working great so far.

 

Scenario: I have created a Flow using Power Automate/Microsoft Flow to send an automated email with a URL (PowerApplink+ID). When the user clicks on the link, they should be taken directly to the 'Display Screen' with the details of the new item created, just like how the user is able to go to the 'Display Screen' by selecting an item in the gallery.

 

I have tried creating duplicating the display screen and changing the item, but doesn't seem to work. Any ideas?

Categories:
  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @BB9 ,

    Please watch this video from Shane Young @Shanescows on Deep Linking.

    It is not a difficult process. If you get stuck, I am happy to help.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • BB9 Profile Picture
    78 on at

    Thank you @WarrenBelz. I have used Deep Linking prior to posting the original post, so I tried a different way, but still was not able to fgigure out what was going on.

     

    I have watched Shane approach and implemented the exact same way and was able to make progress. However, the only think that I am still having an issue is pasing the parameter variable from the URL. I have created a flow using Power Automate and sent the URL and the URL looks correct, it has my parameter name and number. However, when the user clicks the link, they are getting redirected to my home screen and not to my detail screen. However, when I give an ID in the On Start parameter, it seems to be working. I have added a label to check if it was getting the ID and gallery based on that. I am still stuck on how to get the ID passed from the URL to the App.

     

    https://apps.powerapps.com/play/-------------?tenantId=-------------------&ItemID=29

     

    ItemID is my variable that I used to pass the ID value.

     

  • BB9 Profile Picture
    78 on at

    One thing to mention here - I am generating the URL in Microsoft Flow when a new item is created, so I am using the ID dynamic value available in there so it will give me the ID directly and I am passing it. The URL seems to be correct, but my Param variable is not able to capture it from the URL.

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @BB9 ,

    I use the ID in an email link on a couple of my apps - if is assists, I below is the exact code (less the URL nos) I use when sending the ID as a Text parameter. The hyperlink part of the mail - the syntax on the double-single quotes I believe are reversed when coming from a flow content.

    "A <a href='https://web.powerapps.com/apps/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?RecordID=", & IDNoET.Text & "'><b>Timesheet</b></a> has been submitted by "

    now on the incoming App OnStart

    If(
     !IsBlank(Param("RecordID")),
     Set(
     vID,
     Value(
     Param("RecordID")
     )
     ); 
     Navigate(DisplayScreen,ScreenTransition.Cover), //This has the target record on it
     Navigate(DaySummary,ScreenTransition.Cover); //This has a gallery of records on it 
     )
    )

    The Item property of the form on DisplayScreen

    LookUp(MyListName,ID=vID)

    vID is also set from the gallery if navigating from there.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @BB9 ,

    Do you mean that you want to call a flow to send email with app's deep link to open a specific item in an edit form?

    Do you mean that the ID in the deep link is dynamic value?

    Could you tell me how do you get this dynamic value?

    I assume that it is set to "ask in powerapps".

    If so, I've made a similar test for your reference:

    1)in flow:

    trigger: powerapps

    action: send an email   body:

    https://apps.preview.powerapps.com/play/2....e1?tenant......?ItemId=@{triggerBody()['Sendanemail(V2)_Body']}

    //applink ?ItemId= ask in powerapps

    4101.PNG

     2) in powerapps

    (I use a gallery's OnSelect to call this flow, and use this gallery's selected as the dynamic ID value)

    set app's OnStart:

    If(Not(IsBlank(Param("ItemId"))),Set(var,Param("ItemId"));Navigate(Screen2, Cover))

    //edit form is in screen2

    4102.PNG

     

    set gallery's arrow button's OnSelect:

    '410'.Run(Gallery1.Selected.ID)

    //410 is my flow name

    4103.PNG

     

    set the edit form's Item:

    If(IsBlank(var),Gallery1.Selected,LookUp(deeplink,ID=Value(var)))

    //if you open this edit form by using the deep link, the edit form will display the item that the deep link is related to.

    If you open this edit form by gallery, the edit form will display the gallery's selected item.

    4104.PNG

     

    Then if you click the arrow button in the gallery, you will send an email with this app's deep link. If you click the deep link, you will open this app and navigate to the edit form, the edit form will display one specific item.

     

    Here's a blog about deep link for your reference:

    https://powerapps.microsoft.com/en-us/blog/powerapps-deep-linking/

     

     

    Best regards,

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @BB9 ,

    Happy to continue our conversation when you respond to my post.

    @v-yutliu-msft thank you for your elaboration on the matter.

  • BB9 Profile Picture
    78 on at

    Sorry about the confusion, I should have been more clear about the issue.

     

    The ideal scenario would work like this. When a new item is added, I created a flow to send an automated email to the user - and it will have a new ID as it is a new item. I am sending that ID as the parameter for the URL. This is working. I was able to get the URL to show ....tenantId=....&ID=10 (or whatever the new ID is). The issue is my Power App is not picking this ID parameter from the URL.

  • BB9 Profile Picture
    78 on at

    Thank you @WarrenBelz and @v-yutliu-msft for your responses. I am going to try again based on the steps. I made my Power App way more complex with a lot of variables and screens.

     

    As of now, I have filter screen which has a gallery with drop downs, when a user selects an item in the gallery, it will take them to display screen with all the info about the selected item in the previous screen. If they click Edit Icon, it will take them to a different screen where they can edit the same item.

     

    I want to use the same screens to implement Deep Linking. When a new item is added, it will trigger an email with the new ID. The user clicks the link, they should be taken directly to the same display screen (just like above - where user is selecting an ID), here we are already sending the ID as the URL, so we want the user to be taken to the same display screen. Hope I am not creating confusion with this.

     

    If it still doesn't work, I will try recreating the app by starting with Deep Linking first and then reuse those screens for the drop downs, search etc.

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @BB9 ,

    Please refer to the second part of my code, which also works on the incoming ID as a parameter.

    If you give me the actual requirements for what happens when your app is opening by this URL (rather than being opening normally), I can apply this to your situation.

     

  • Verified answer
    WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @BB9 ,

    Just got your last message - that is precisely what I do and it is not difficult.

    The key is the common selection method of the required record on the screen containing this form. As you are sending the ID in the URL, this is done as per the specs below. Strangely, I actually have the same screen name as you and a different Reference.

    So firstly at App OnStart

    If(
     !IsBlank(Param("ItemID")),
     Set(
     vID,
     Value(
     Param("ItemID")
     )
     ); 
     Navigate(DisplayScreen,ScreenTransition.Cover), //This has the target record on it
     Navigate(YourGalleryScreen,ScreenTransition.Cover); //This has a gallery of records on it 
     )
    )

    This will put the ID number you want into the numeric variable vID and navigate straight to the DisplayScreen (or to the gallery screen if there in no ItemID parameter in the URL that opened the app).

    Now the Item of the form displaying the record can be

    LookUp(MyListName,ID=vID)

    and lastly, on the OnSelect of your gallery that normally selects the item

    Set(vID,ThisItem.ID);
    Navigate(DisplayScreen,Fade)

    So it will also display the required record by the same means.

    Happy to elaborate further if required.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard