Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Exception caught in rest step in flow designer

indrajeetma
Tera Guru
catch (ex) {
   
    msg = ex.message;
    current.variables.exception_caught = msg; //Exception Caught message
    current.variables.message_in_table = errMessage; //Error message
    current.variables.scenario_choices = 'exception';
    var wff = new Workflow().getRunningFlows(current);
    while (wff.next()) {
        new Workflow().broadcastEvent(wff.sys_id, 'New.hire.7');
    }
} I am converting workflow to flow desginer and i have used Custom action with rest step for integration but what if the exception caught then how can i do it in flow desginer and set those variables.
1 REPLY 1

Community Alums
Not applicable