Flow designer - stop processing inbound email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2025 12:35 AM
Hi.
I would like to create a flow for inbound emails to run first and stop the processing within the flow depending on different if statements.
In a traditional inbound action i can use event.state = "stop_processing" and I would like to do that in a custom action in flow designer.
What is the event in event.state and can I access it via flow?
The below image shows what i want to accomplish. Is there a way to do this?
Currently on the Xanadu release.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2025 12:45 AM
you already have Stop processing
Stop processing means that if the flow executes then stop processing all other inbound email flows for that email and don't process any inbound actions for that email.
what's your business requirement here?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2025 12:59 AM
I want to stop the processing if the inbound email has some criteria like sent from a certain user or subject has a specific line or some other criteria that will determine if processing needs to be stopped.
I don't want to use stop processing in the trigger as that would stop all emails.
I think the image explains pretty well what i want to do, whenever a new scenario of emails that should not be processed for whatever reason I want to be able to create another IF and add the stop in that issue.
Same as in an inbound action there is a stop processing checkbox and it can also be used in the script. See image below.
So is there a way to access event in flow?
What is the event that is stopped?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2025 01:05 AM
not feasible in flow directly
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2025 01:56 PM
@magnuspersson Did you ever find a solution to this?