Unable to trigger flow on outbound email in ServiceNow

Guruvendra J
Tera Contributor

Is it feasible to trigger a flow on creation of outbound email in ServiceNow?

One of the community article suggested to add
'sys_email' table in 'sn_flow_designer.allowed_system_tables' property to show in 'Trigger' is 'Record' but no luck. PFA.

 

We have trigger > Application > Inbound email - to trigger a flow based on inbound email.

 

Is there a way to trigger a flow on outbound email creation?

1 REPLY 1

Amit Verma
Kilo Patron
Kilo Patron

Hi @Guruvendra J 

 

I could think of creating an after insert business rule on sys_email table with a filter condition as Subject contains "Your subject" or any other relevant condition as per your requirement so that the business rule only triggers for a particular email.

 

AmitVerma_0-1709551333818.png

 

Copy the Server side code snippet of your flow from Flow Designer and paste it in the Advanced Scripting section of your business rule. This will ensure that your flow runs whenever your business rule is fired.

 

AmitVerma_1-1709551677391.png

 

AmitVerma_2-1709551740332.png

 

Save the Business rule and give it a try.

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.