Hello Everyone
I'm reaching out in the hope that someone can help, I've spent hours trying to get this issue to work and am on the point of giving up!
My App
I have created an app which contains a form and repeating lines and authorisation selection. The form connects to one Sharepoint list (parent) and the repeating lines to another (child), I have managed to link the ID to both as one form entry can have numerous repeating line entries.
On submission, this writes back to the Sharepoint lists and this will trigger the approval workflow. This is working perfectly.
The approvers get the standard approval email but will need details of the request, not just the form but the repeating lines also.
I watched Shane Young's deep link video and this was really helpful but not quite my scenario as I am not emailing through a button in Powerapps but via the workflow. I therefore created a variable in the workflow to create the email link.
Here are all the "ingredients" of my deep link:
App On Start:
Solved! Go to Solution.
I opened up one of my working deep linking apps to check and this works for my, slightly different to your structure though
// Set variable using parameter
Set( vGcrID, Value(Param("gcrID")));
// Check for ID, Navigate if present
If( vGcrID <> 0,
Set(varGCRID, LookUp('parentdatasource', ID = vGcrID));
Navigate(MyApprovals, CoverRight)
);
I think PowerApps wants you to set the Param as a Variable first before using it, at least that's what has worked for me.
From memory, I had to use Value() to sort a similar issue to yours. I now also wrap any text Param's in the Text() function, just to be sure.
A couple of things you could try:
- Is your App OnStart code at the top of all your App OnStart code. It must be the the first thing it encounters
- is there a space in your URL? I've found in the past that the app stops 'reading' the URL at the first space it encounters
- review the URL that opens the app and make that the parameter is actually there and is correct
Hi
Thank you for replying.
Yes it is the first code in my App onstart, no spaces in URL and the link in the approval email generates this:
https://apps.powerapps.com/play/**myweblink**?tenantId=**mytenantid**&hidenavbar=true&gcrID=320
This is why it is so frustrating as all looks ok.
I opened up one of my working deep linking apps to check and this works for my, slightly different to your structure though
// Set variable using parameter
Set( vGcrID, Value(Param("gcrID")));
// Check for ID, Navigate if present
If( vGcrID <> 0,
Set(varGCRID, LookUp('parentdatasource', ID = vGcrID));
Navigate(MyApprovals, CoverRight)
);
I think PowerApps wants you to set the Param as a Variable first before using it, at least that's what has worked for me.
From memory, I had to use Value() to sort a similar issue to yours. I now also wrap any text Param's in the Text() function, just to be sure.
IT WORKED!!!! This has ended hours of frustration, I really appreciate you taking the time to respond to me, thank you so much! 😊
User | Count |
---|---|
251 | |
102 | |
94 | |
48 | |
37 |