I'm using PowerApps email template and I'm having trouble with clearing the attachments once the email has been sent. If a user wants to submit another email for another request type immediately after submittal of the first request, when they return to the form, the previous attachments are still present. The current code on the send button is as shown below. Is there something in it I need to tweak in order to get the attachments to clear on send?
/*Create semicolon separated list of people to email, send the email, reset subject & message fields*/
Set(_emailRecipientString, Concat(MyPeople, Mail & ";"));
Office365Outlook.SendEmailV2(_emailRecipientString, TextEmailSubject2.SelectedText.Value, RTEBody.HtmlText, {Attachments: RenameColumns(Attach.Attachments, "Value", "ContentBytes"),Importance:"Normal"});
Reset(TextEmailSubject2);
Reset(RTEBody);
Clear(MyPeople); Navigate(SuccessEmailAlaCarte, ScreenTransition.Fade)
