How can I synchronize a flow that updates a record with the email panel? Or make the flow run synchronously so that the user waits for it to finish?
I have a meeting note object with 3 junctions relating it to contacts, staff and topics discussed at the meeting. I created a process which has an immediate action that calls a flow. The flow rounds up the names of those records and puts them into a mail merge data field on the meeting record. The user will save a meeting note, then will click on the Activity > Email panel, selecting an email template that will include the mail merge field.
I am seeing what looks like a race condition. Sometimes if you click the preview eye button it does not pick up all the contacts or staff who attended the meeting. I see that when the email is sent too. If I re-save the meeting note and do it again it works.
I would like the flow to run synchronously and the Meeting Note saved alert message should not appear until it is done. Any ideas on how to synchronize the email with a different field I can mark when the flow is done?
See the screenshots below. I get no fault emails despite setting them up on all DML elements. I added several attendees, saved, then sent the email right away, getting blank attendees. I waited 5-10 minutes but still the field was not updated. Now I open the record to edit and hit save again, and the field has been updated. (see final screenshot showing all attendees.)