cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
godala_vamshi
Helper II
Helper II

Deep Link to Record not working

Hello all,

@RandyHayes  @WarrenBelz 

I followed exact same steps as on Shane's tutorial (deep linking to a specific record) but I'm getting below error when I try to click on any record on my app Gallery. Also when I try to do same action from power apps studio as app creator, I don't see same error but it just take me to same record every time I select different record. Am I missing anything? 
"Getting your data"

Here is my setup for deep linking: 

Onstart of App: Set(varProjectID, Value(Param("ProjectID")));
If(varProjectID <> 0, Set(varRecord,LookUp('Upgrade Evaluations',ID=varProjectID));Navigate(DetailScreen1))

OnSelect of record Navigate: Set(varRecord,ThisItem);Navigate(DetailScreen1,Transition.None)

Item property of my view form: varRecord

Onselect of button: Office365Outlook.SendEmailV2("Test@test.com", "Test", "Hello , Test body. <a href='https://apps.powerapps.com/play/886edd07-6792-4a8b-8afb-3559f5a11b70?tenantId=Test&hidenavbar=true&P..." & varRecord.ID & "'> LINK </a>

 

Thank you! 

 

godala_vamshi_0-1618875641849.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @godala_vamshi ,

Firstly, this code at OnStart looks OK

Set(
   varProjectID, 
   Value(Param("ProjectID"))
);
If(
   varProjectID <> 0, 
   Set(
      varRecord,
      LookUp(
         'Upgrade Evaluations',
         ID=varProjectID
      )
   );
   Navigate(DetailScreen1)
)

I actually do something similar to you and had a lot of trouble getting all the commas to work, so I did this

With(
   {
      wURL:
      "https://apps.powerapps.com/play/88.....?tenantId=Test......&ProjectID=" & varRecord.ID
   },
   Office365Outlook.SendEmailV2(
      "Test@test.com", 
      "Test", 
      "Hello Test body <a href=" & wURL & "> LINK </a>"
   )
)

You also had an extra comma in your code after Hello, meaning the Body stopped 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.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User III
Super User III

Hi @godala_vamshi ,

Firstly, this code at OnStart looks OK

Set(
   varProjectID, 
   Value(Param("ProjectID"))
);
If(
   varProjectID <> 0, 
   Set(
      varRecord,
      LookUp(
         'Upgrade Evaluations',
         ID=varProjectID
      )
   );
   Navigate(DetailScreen1)
)

I actually do something similar to you and had a lot of trouble getting all the commas to work, so I did this

With(
   {
      wURL:
      "https://apps.powerapps.com/play/88.....?tenantId=Test......&ProjectID=" & varRecord.ID
   },
   Office365Outlook.SendEmailV2(
      "Test@test.com", 
      "Test", 
      "Hello Test body <a href=" & wURL & "> LINK </a>"
   )
)

You also had an extra comma in your code after Hello, meaning the Body stopped 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.

View solution in original post

Hi @WarrenBelz , No luck. Now I see below error when clicked on record, I feel it has some thing to do with Item property of my view form which is set to varRecord. 

 

godala_vamshi_0-1618891170146.png

 

Hi, 

Try putting the lookup you have to set the Variable as the Item of your form. That is what I do

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.

 

 

WarrenBelz
Super User III
Super User III

Hi @godala_vamshi ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

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.

@WarrenBelz Missed to notify you. it is working. Thank you! 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,057)