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

Deep linking technique sends correct URL in email, but navigate to appropriate screen failing.

I am using deep linking technique in Powerapps to pass an ID for specific sharepoint list item in Email, so that when approver clicks on that link in email, it redirects to the approver form directly for that specific item.

 

1. In NewForm, submit button OnSelect, I included below piece of code

    Office365Outlook.SendEmail("abc@abc.com","Your request is submitted for approval","https://web.powerapps.com/apps/xxxx-xxxx-xxxx-xxxx?ItemID=" &NewForm.LastSubmit.ID)

 

2. In NewForm, I included timer control, AutoStart set to true and visible set to False. OnTimerEnd, I included below piece of code

If(Not(IsBlank(Param("ItemId"))),Navigate('Approve Screen', Cover,{ID:LookUp('Datasource',ID = Value(Param("ItemId")))}))

 

3. In Approve Screen form, Item property, I included below piece of code

First(Filter('Datasource', ID = Value(Param("ItemId"))))

 

I noticed that after running the app, I receive approval email correctly with expected ItemID something like below

https://web.powerapps.com/apps/xxxx-xxxx-xxxx-xxxx?ItemID=49

 

However, once I click on the URL from the email, it doesn't redirect me to Approve Screen, as highlighted in Step 2.  I can see the URL correctly in the browser with correct ItemID, but doesn't see expected screen and the particular item edit form.

 

Any technical advice would be helpful. Thanks.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@Kumar9024021 

Noticed you kudoed the post.  Did my idea work for you?

View solution in original post

3 REPLIES 3
Super User III
Super User III

@Kumar9024021 

Instead of using a timer control I suggest you put this code in the OnStart property of your App.

Set(ItemId, If(!IsBlank(Param("ItemId")),Value(Text(Param("id"),"[$-en-US]0")),Blank()));
If(!IsBlank(ItemId),Navigate('Approve Screen',Cover));

 

Then use this code in the Item property of your Approve Form

LookUp('Datasource',ID=ItemId)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

@Kumar9024021 

Noticed you kudoed the post.  Did my idea work for you?

View solution in original post

Yep @mdevaney . Thanks a lot.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (82,201)