Hi.
I am trying to create an approval process without using Power Automate flow. I have done the below. It was working perfectly fine and it also sent me the deeplink to approve the order. But now it stopped sending the deeplink.
On Start :
Set(
varCurrentUser,
User()
);
Set(
varCurrentDept,
Office365Users.MyProfile().Department
);
If(
!IsBlank(Param("ID")),
Set(
varRecord,
LookUp(
'Stationery Order Request',
ID = Value(Param("ID"))
)
);
Navigate(
scrCurrentOrders,
ScreenTransition.Fade
)
);
Clear(colCurrentApprovals);
ClearCollect(
colApprovals,
Filter(
'Stationery Order Approval',
Approver.Email = varCurrentUser.Email
)
);
ForAll(
Filter(
colApprovals,
IsBlank(Outcome)
),
Collect(
colCurrentApprovals,
LookUp(
'Stationery Order Request',
ID = Parent_ID
)
)
);
Set(varListTab,"Main")
I have done this code on OnSucess for my form:
Set(
varRecord,
frmStationeryForm.LastSubmit
);
Navigate(
scrWelcome,
ScreenTransition.Fade
);
Notify(
"thank you for submitting this form. It has been sent to approvers for review.",
NotificationType.Success
);
If(
varRecord.FormStatus = "New",
Patch(
'Stationery Order Approval',
Defaults('Stationery Order Approval'),
{
Title: cmbPickManager.Selected.DisplayName,
Approver: {
Claims: cmbPickManager.Selected.Claims,
DisplayName: cmbPickManager.Selected.DisplayName,
Email: cmbPickManager.Selected.Email,
Department: "",
JobTitle: "",
Picture: ""
},
Parent_Lookup: {
Id:Value(varRecord.ID),
Value:varRecord.ID
},
Parent_ID:Value(varRecord.ID)
}
);
Patch(
'Stationery Order Request',
varRecord,
{FormStatus: "Submitted"}
);
Office365Outlook.SendEmailV2(
varCurrentUser.Email,
varRecord.'Created By'.DisplayName & " " & "Stationery Order Request",
varRecord.'Created By'.DisplayName &" "& "has submitted a Stationery Order request. Please click the link below to review.<a href=""https://apps.powerapps.com/play/ba5abc5e-1e04-463f-af24-6eff1838fb05?tenantId=4e823f98-fbe5-4e6e-af9..." & varRecord.ID & """>CLICK HERE</A>"
)
)
Could you please tell me what is the issue and why it has stopped sending me the deeplink?