Re: Apps Performance with DataVerse
Hi Both,
It's a Patch as we need to update a couple of tables. I do have a load / save spinner (as you can see from my Patch statement) and there are a couple of different Patch statements in here. Maybe I'm just being impatient, but our experience of Power Platform / Dataverse here in Australia isn't the greatest...
Code under my 'Save' button is:
UpdateContext({showAMApproveSpinner: true});
Patch('Placement Approvals', LookUp('Placement Approvals',Activity = galAMApprovalHistory.Selected.Activity),{'Activity Status':'Activity Status (Placement Approvals)'.Completed},{'Status Reason':'Status Reason (Placement Approvals)'.Approved}, {Description : User().FullName});
Patch(Notes, Defaults(Notes), {Title:"Placement Approval"}, {Description:"Approved By - " & User().FullName}, {Regarding:varSelectedPlacement}, {'Is Document':false});
Office365Outlook.SendEmailV2("user@company.com.au", "Placement Approval", "Hi There,</br></br> Placement " & varSelectedPlacement.PlacementID & " has been Approved by " & User().FullName & "</br></br>Thanks!", {Importance:Normal});
UpdateContext({showAMApproveSpinner: false});
Thanks!