Flow designer - stop processing inbound email

magnuspersson
Tera Expert

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.

magnuspersson_1-1739953766129.png

 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@magnuspersson 

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.

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

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.

@Ankur Bawiskar 

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.

magnuspersson_0-1739955487717.png

So is there a way to access event in flow?

What is the event that is stopped?

 

@magnuspersson 

not feasible in flow directly

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

@magnuspersson  Did you ever find a solution to this?