Flow Designer flow for a Catalog Item approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
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
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