I have a form and 4 buttons... now when clicking on some button i will be submitting the Form and return the users to the main screen. while on other scenarios after submitting the form i need to Patch and clear some collections for SharePoint items. so generally speaking is it fine to write formula after form submission something as follow:-
If(IsEmpty(colNetworkConflicts),
If(IsEmpty(colSelectedMedia) Or IsEmpty(colSelectedNetworks),
Notify("Please select atleast one Network and one Medium",NotificationType.Error),
SubmitForm(BookingCalendarForm))
,
Notify("Conflict found, Please check the Booking calendar for more info",NotificationType.Error));
Clear(colDelegableresults);
Clear(colNetworkConflicts);
or as follow:-
SubmitForm(PrintFormForm);
Office365Outlook.SendEmailV2(
PrintFormForm.LastSubmit.'Printing House Email',
PrintFormForm.LastSubmit.'Email Subject',
PrintFormForm.LastSubmit.'Email Body',
{
Attachments:Table({
Name: varAttachment.DisplayName,
ContentBytes: varAttachment.Value
})
or the formula after the SubmitForm() will not get executed/reached?