'Having issue implementing a deep link in PowerApps
I built a calendar control from example online. We have an approval workflow based on new items that get entered in to this calendar. When approver gets an email from my app they get a deep link to open up an item. But I can’t figure out how to open up an ID from a deep link in the new way of using StartScreen event in PowerApps.
The submit button has the following code:
Patch(
ChangeMgtEvents,
varSelectedEvent,
{
Status: "Submitted",
Comments: Today() & " " & Office365Users.MyProfileV2().displayName & " has submitted this Change Management Request for review. "
}
);
Patch(
ChangeMgtEvents,
varRecord,
{
Status: "Submitted",
Comments: Today() & " " & Office365Users.MyProfileV2().displayName & " has submitted this Change Management Request for review. "
}
);
Office365Outlook.SendEmailV2(
DataCardValue41.Selected.Email,
"Please review this Change Management Request at your earliest convenience",
" Use the link button to open the Change Management Request for " & varSelectedEvent.Title & " and review at you earliest convenience. ===>>> " & Char(10) & " <a href= https://apps.high.powerapps.us/play/80bf865-bf83-4137-9959-b874c4894367?tenantId=f06565664c-4583-88a..." & varRecord.ID & ">LINK",
{Cc: Office365Users.MyProfileV2().mail}
);
Refresh(ChangeMgtEvents);
Back()
The manager receives this email:
I need the ID from the deep link to be parsed and open up the below screen automatically.
My APP StartScreen currently uses varID to determine which screen to land on. I want to figure out how to pass it to DetailScreen.
Set(
varID,
Value(Param("ID"))
);
Set(
varUserID,
Office365Users.MyProfileV2().id
);
If(
varID <> 0,
Set(
varRecord,
LookUp(
ChangeMgtEvents,
ID = varID
)
);
);
Any help on getting the deep link to the DetailScreen would be greatly appreciated. I wanted to pass a param in the IF statement to Detail Screen but not sure how in an IF statement without using Navigate, but it won’t compile the code when I used Navigate inside the IF statement. Says I couldn't do action in not actionable event or something.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|






