I created a PowerApps form to submit trade submissions for approval referencing reza's video here ((27) How to create Approval Forms in Power Apps - YouTube.
When I test with my self as the approver, I can select the PowerApps deep link in the email - it goes to directly to the trade review screen which is pre-populated form. There I can approve the request.
When I update the test case in the power automate workflow with another email address as the approver email address and they select the link they are re-directed to a new form instead of the original submission for approval.I
Here is what I have on the App Start Screen:
If(
!IsBlank(Param("ID")) && LookUp(
'Trade PreApproval Form',
ID = Value(Param("ID"))
).ApproverEmail = User().Email,
TradeReview,
TradeReqForm
)
Form (TradeReqForm) Submit OnSelect property:
If(
Form1.Valid, // Check if the form is valid
If(
!IsBlank(DataCardValue6.Text) || !IsBlank(DataCardValue9.Text),
SubmitForm(Form1);
Set(varNewRecordID, Form1.LastSubmit.ID);
Navigate(EndScreen),
Notify("Please complete the required fields", NotificationType.Error)
),
Notify("Please complete the required field", NotificationType.Error)
)
Form (TradeReqForm) OnSuccess:
'TradeSubmission-PROD'.Run(varNewRecordID);
TradeReview Screen, OnVisible property:
If(
!IsBlank(Param("ID")),
Set(
varItem,
LookUp(
'Trade PreApproval Form',
ID = Value(Param("ID"))
)
);
Set(
varFormMode,
FormMode.Edit
)
)