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 / Create multiple deep l...
Power Apps
Answered

Create multiple deep links with records

(0) ShareShare
ReportReport
Posted on by 86

Hi,

I am trying to create 2 deep links that open up to 2 different screens based on the record selected from each of the galleries. Below are the syntaxes:

 

At OnStart:

Set(VarEmpID,Value(Param("EmpID")));

If(VarEmpID<>0,Set(VarEmp,LookUp('MasterList',ID=VarEmpID));

Navigate('Emp Details'));

 

Set(VarClearanceID,Value(Param("ClearanceID")));

If(VarClearanceID<>0,Set(VarClearance,LookUp('MasterList',ID=VarClearanceID));

Navigate(EmpClearanceSummary));

For 1st Deep Link

 

 

 

For 2nd Deep Link

 

1st Deep Link

 

At the Emp Gallery screen

Gallery NextArrow:

Set(VarEmp,ThisItem); Navigate('Emp Details')

 

At the Emp Details screen:

EditForm.Item:

VarEmp

 

SendLink_Button.OnSelect:

Office365Outlook.SendEmailV2("MyEmail@email.com", "Subject" , "<a href='https://apps.powerapps.com/play/{App ID}?EmpID="& VarEmp.ID &"'>link</a>")

 

2nd Deep Link

 

At the Clearance Gallery screen:

Gallery NextArrow:

Set(VarClearance,ThisItem); Navigate('EmpClearanceSummary')

 

At the EmpClearanceSummary screen:

EditForm.Item:

VarClearance

 

SendLink_Button.OnSelect:

Office365Outlook.SendEmailV2("MyEmail@email.com", "Subject", "<a href='https://apps.powerapps.com/play/{App ID}?ClearanceID="& VarClearance.ID &"'>link</a>")

 

The 1st one is working fine.

But the 2nd one is not working, I am able to open up to the EmpClearanceSummary screen but without the record I expected (i.e empty). When I tried to select a record from the Clearance Gallery, it also navigated to an empty EmpClearanceSummary screen. How can I solve this?

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

    I think instead of comparing varEmpID and VarClearanceID to not equals to 0, you should check for whether it's blank or not as you are not passing both the parameters in the URL.

  • tanst_844288 Profile Picture
    86 on at

    Hi @NandiniBhagya20 ,

    Thanks for the fast reply. Do you mean to write something like this?

    If(!IsBlank(VarClearanceID), Set(VarClearance,LookUp('MasterList',ID=VarClearanceID)))

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Yes you can try this, I am not sure if it will work, but we can give it a try 

  • tanst_844288 Profile Picture
    86 on at

    It still not working, the outcome is the same as before...

  • Verified answer
    tanst_844288 Profile Picture
    86 on at

    I tried again the solution by @WarrenBelz ,

    This is the link https://powerusers.microsoft.com/t5/Building-Power-Apps/Deep-Linking-with-Multiple-Scrrens/td-p/701114#

     

    Its working for me now, I tried previously but didn't manage to get it work because I didn't set the gallery next arrow the first time I tried. (Sorry, I am still learning having started powerapp a few months back)

     

    So below are the formulas. I removed the second global variable (VarClearance) for the 2nd deep link & used VarEmp for both deep links- I think can only use one global variable.

     

    At OnStart:

    Set(VarEmpID,Value(Param("EmpID")));

    If(VarEmpID<>0,Set(VarEmp,LookUp('MasterList',ID=VarEmpID)));

    If(
    Param("Screen") = "View", Navigate('Emp Details'),
    Param("Screen") = "Clearance", Navigate(EmpClearanceSummary)
    )

     

     

    1st deep link --> View

    2nd deep link--> Clearance

     

    1st Deep Link

     

    At the Emp Gallery screen

    Gallery NextArrow:

    Set(VarEmp,ThisItem); Navigate('Emp Details')

     

    At the Emp Details screen:

    EditForm.Item:

    VarEmp

     

    SendLink_Button.OnSelect:

    Office365Outlook.SendEmailV2("MyEmail@email.com", "Subject" , "<a href='https://apps.powerapps.com/play/{App ID}?EmpID="& VarEmp.ID &"&Screen=View'>link</a>")

     

    2nd Deep Link

     

    At the Clearance Gallery screen:

    Gallery NextArrow:

    Set(VarEmp,ThisItem); Navigate('EmpClearanceSummary')

     

    At the EmpClearanceSummary screen:

    EditForm.Item:

    VarEmp

     

    SendLink_Button.OnSelect:

    Office365Outlook.SendEmailV2("MyEmail@email.com", "Subject", "<a href='https://apps.powerapps.com/play/{App ID}?EmpID="& VarEmp.ID &"&Screen=Clearance'>link</a>")

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard