Hi,
I am trying to send an email ONLY ONCE when a form is submitted by a user regardless of the times he hit on the Submit button?
My current situation:
- User edits a form and hits submit.
- An email will be sent automatically to the designated recipient through combobox selected.
- User comes back to edit some few fields, enters the info, and hits the Submit button.
- if email is already sent no email should be sent again, if they change the person in combobox then it should it send email.
I have tried the following these steps and it dosnt work as expected.
OnVisible screen:
Set(emailSent,false)
OnSuccess of form:
If(emailSent = false,
Office365Outlook.SendEmailV2(
Concat(
ComboBox4.SelectedItems,
Mail & ";"
),
"New Project assigned",
"Hi you are assigned with new project, please review the project detail <a href='Sharepoint site URL =" & BrowseGallery1.Selected.ID & "& e=CP4kmH'> Click link for details</a>'",
{From: "applicationdevelopment@flexicare.com"}
);
Set(emailSent, true)
Submit button:
SubmitForm(Form1);
Navigate(Homescreen);Reset(TextSearchBox1)
It did send email for the first submit, but when i came back and edited few fields and clicked on submit, it gave me a error message and the combobox resets to blank.

Is there a way that only one email will be sent to the user?
I would like to prevent bombarding emails to the recipients.
Thank you.
@WarrenBelz @BCBuizer @LaurensM @Drrickryp @NandiniBhagya20 @CNT