The CreatorCon Call for Content is officially open! Get started here.

How to build a Subflow which will be attached once we enable Error handling.

Kishor O
Tera Sage

I want to pass flow name , Error code, and Error message as input to the sub-flow 

*In sub flow there should be a logic to send notification 

Example email subject : There is error occurred while running flow <*flow name*>(should be dynamic)

1 ACCEPTED SOLUTION

SunilKumar_P
Giga Sage

Hi @Kishor O, You can create a subflow with the inputs and add action 'Send Email' to the workflow.

SunilKumar_P_0-1707907571295.pngSunilKumar_P_1-1707907588456.png

 

2. Configure the mainflow with the 'Error Handler' subflow.

Look up record in the 'Flow Engine Context' table with the source record as the Trigger Record.

SunilKumar_P_2-1707907694400.png

Dot walk to the look up record 'Name' to configure it to the subflow.

SunilKumar_P_3-1707907738565.png

 

Regards,

Sunil

 

 

View solution in original post

7 REPLIES 7

SunilKumar_P
Giga Sage

Hi @Kishor O, You can create a subflow with the inputs and add action 'Send Email' to the workflow.

SunilKumar_P_0-1707907571295.pngSunilKumar_P_1-1707907588456.png

 

2. Configure the mainflow with the 'Error Handler' subflow.

Look up record in the 'Flow Engine Context' table with the source record as the Trigger Record.

SunilKumar_P_2-1707907694400.png

Dot walk to the look up record 'Name' to configure it to the subflow.

SunilKumar_P_3-1707907738565.png

 

Regards,

Sunil

 

 

Love the way you explain 🙂 @SunilKumar_P 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

@Dr Atul G- LNG, Thanks for the compliment😊 Glad that I could help.