Hello everyone. I have a Power App that captures appended comments along with a myriad of other items, but the appended comments is the one that I am having issues with. I have the following code in the OnSelect property of a button that patches the updates and then sends an email to the individual identified in the People Picker column. The email includes all the appended comments data. The issue I am having is when I submit the update, the most recent comment is not being captured in the email. It seems as though the email is being sent prior to the patch being fully updated in the SP list. Is there a way to delay the email until the patch is completed and the SP list is updated to ensure that the email captures the most recent data? Here is the code I have. It works great except for that one issue.
Patch('SP List Name',varFormData,'Clarification Email Form'.Updates);(Office365Outlook.SendEmailV2(
'Clarification ComboBox TO'.Selected.Email,
"Re: "& DataCardValue35_1.Text,ClarificationRichTextComments.HtmlText & "<br><br>" & DataCardValue28.Text & "<br><br>" & DataCardValue39.HtmlText&"<br><br>"&'DAS Email Deep Link Html_1'.HtmlText,{Cc:'Clarification ComboBox CC'.Selected.Email}
));
If(
IsEmpty(Errors('SP List Name')),
Notify(
"This task has been updated successfully",
NotificationType.Success
)
);
Navigate('Screen 1');
Any help is appreciated. Thanks.