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.

how to check state of an flow when completed and error caught

Raviteja Kunal1
Tera Expert

Hi All

 

I am trying to trigger an sub flow from UI action. How to get status of the sub flow if it is completed or completed (with caught error). I need this information to process further. 

 

Thank you in advance.

var result = {};
    result['condition'] = 'test';

    var gst = sn_fd.FlowAPI.getRunner()
        .subflow('retrieve_supplier_details')
        .inBackground()
        .withInputs(result)
        .run();

 

10 REPLIES 10

@Raviteja Kunal1 

share your subflow at which step did you purpose fully add the error

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