Hello,
I am working on a Shipping App. When a new request is submitted, the Logistics Crew Members will be sent an email with a deep link that takes them to a Logistics screen where they will be able to view the request and process it. I'm having trouble passing the ID of the request as shown in the screenshot below. If someone could help me figure it out I would be grateful.
LOGISTICS SCREEN

APP ON START EDIT SCREEN DEEP LINK
I also have a deep link that goes into an email that is sent to the requestor if their request has been placed on hold until they provide more info. This deep link is working fine. Notice that I don't specifically call out a screen name in the deep link, just the ID.
Set(varProjectID,Value(Param("ProjectID")));
If(varProjectID <> 0,
Set(varRecord, LookUp('Domestic Shipping Requests', ID=varProjectID));
Navigate(frmSummary),Navigate(HomeScreen);
APP ON START LOGISTICS SCREEN DEEP LINK
Here I tried adding a specific reference to the screenname as well as the varProjectID to differentiate it from the Edit Screen deep link. This deep link does not work.
Set(varProjectID,Value(Param("ProjectID")));
If(Param("DeepLink") = "LogisticsScreen",
Set(varRecord, LookUp('Domestic Shipping Requests', ID=varProjectID));
Navigate(frmLogistics),Navigate(HomeScreen);
FRMMASTERNEW ONSUCCESS EMAIL FORMULA
This email is going through quickly when a new request is submitted, but the deep link isn't working. The page opens in Power Apps, but there is no ID (the url details are normally in the url of course). Since this is a brand new request, do I need to reference "LastSubmit" somehow? If so, how do I incorporate it?
//Marks the last step of the progress indicator complete
Patch(
FormPageStatus,
{Page: CurrentPage.Page},
{Status: "Complete"}
);
//Sets a custom 5-digit ID based on the internal Sharepoint ID
UpdateIf(
'Domestic Shipping Requests',
ID = Self.LastSubmit.ID,
{'Request Number': Self.LastSubmit.ID + 10000}
);
//Highlights the most recent record for the user
Set(
HighlightRecord,
frmMasterNew.LastSubmit
);
//Takes the user back to the homescreen
Navigate(HomeScreen,ScreenTransition.None);
//Sends an email notification to the Logistics Team
Office365Outlook.SendEmailV2("teresa.agustin@company.com",
"New Shipping Request Notification",
"<p>Hello,</p>
<p>A new Shipping Request has been submitted.</p>
<p><a href='https://apps.powerapps.com/play/urldetails&hidenavbar=true&DeepLink=LogisticsScreen&ProjectID="& varRecord.ID &"'>CLICK HERE</a> to view and process the shipping request.</p><p>Thank you</p>"
, {Bcc:varUser.Email,Importance:"High"})
Let me know if you need any additional information. Thank you, Teresa