cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
godala_vamshi
Frequent Visitor

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (40,603)