Flow Designer flow for a Catalog Item approval

aikaterinik
Tera Contributor

I have a Flow Designer flow for a Catalog Item approval. After “Ask for Approval,” I want to send exactly one email: either “Application Approved” or “Approval Denied.” Instead, both emails are sent at the same time. In Outbound > Sent I see two records with identical timestamps (“Application Approved” and “Approval Denied!”). Screenshots attached.

Screenshot 2025-10-02 164616.png

Screenshot 2025-10-02 164707.png

  

4 REPLIES 4

Rafael Batistot
Kilo Patron

Hi @aikaterinik 

May you try a diferente approach... After the state of approval change to "approved" in RITM create a Business rule > after > updated, to send this notification 

 

RafaelBatistot_0-1759432766969.png
In BL add this code:

var gr = new GlideRecord('sysapproval_approver');
gr.addQuery('approver', '<sys_id_of_approver>');
gr.query();
if (gr.next())
    gs.eventQueue("<event_name>", gr);

 
Configure an event registry and notification 

https://www.servicenow.com/community/developer-forum/mail-notification-using-event-queue/m-p/2995462

If you found this response helpful, please mark it as Helpful. If it fully answered your question, consider marking it as Correct. Doing so helps other users find accurate and useful information more easily.

AndersBGS
Tera Patron
Tera Patron

Hi @aikaterinik ,

 

You can mitigate this by putting the "send mail" and "update requested item record" in an "then else" condition. 

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Ankur Bawiskar
Tera Patron
Tera Patron

@aikaterinik 

you should add the other 2 steps (Step 8 and Step 9) under ELSE

So what happens at 1 time only IF executed or ELSE executes and sends only 1 email

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I added a end flow after step 7

aikaterinik_0-1759496872513.png