Flow Designer Tru Catch

etienne3
Tera Contributor

Hi all,

 

I am creating custom flows and am using the Try flow logic - just as a developer would do with a try catch. Now, I would like to capture the message the Try throws up (ex.message in normal scripting).

 

It seems that the Flow logic Try step does not have any pills available to use.

 

Is there any way the message can be captured/accessed? Viewing the flow execution there is an error status, with codes and message. But it seems you cannot capture that through a pill.

10 REPLIES 10

Shivalika
Mega Sage

Hello @etienne3 

 

It should be your try catch block to catch this thrown message. 

 

Try{}

Catch(ex){

print(ex.message)}

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway,

 

Regards,

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwN

eEISQCY

In the flow, not a script or a script step

Hello @etienne3 

 

Depending on the complexity of the flow, you add this at your convenient steps or if you want a generic thing, you can use error handlers. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway,

 

Regards,

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

GopikaP
Mega Sage

Hi @etienne3 , yes, in Flow Designer, using a try-catch does not provide any messages. However, you can use the Error Handler at the end of the flow. I understand that you want to capture a specific error message occurring in that step, but the Error Handler cannot pinpoint the exact step where the error occurs.