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

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
Super User

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
Super User

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.

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
Super User

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,636)