Flow Designer - executing flow using script in action does not show execution logs of the flow

Supriya39
Giga Guru

Hello All,

 

I am executing a flow named 'Test' from script action using ScriptableFlowRunner.  The flow gets executed properly with inputs. But when we go to check execution logs of this flow it gives error "There was an error loading the execution details for this flow context" - Exception - 

Error:
Exception while executing request: null
 
Below is the script - 
 

(function execute(inputs, outputs) {

var callNumber = inputs.callNumber;
var flowName = "global."+ inputs.flowName;
var now_GR = new GlideRecord('new_call');
now_GR.addQuery('number', callNumber);
now_GR.query();
now_GR.next();
try {
var inputs = {};
var flowName = flowName;
inputs['current'] = now_GR; // GlideRecord of table:
inputs['table_name'] = 'new_call';

// Starts the flow asynchronously.
var result = sn_fd.FlowAPI.getRunner()
.flow(flowName)
.inForeground()
.withInputs(inputs)
.timeout(30000)
.run();


}

catch (ex) {
var message = ex.getMessage();
gs.error(message);
}


})(inputs, outputs);

 

I am stuck here. Any help would be appreciated. Thanks in advance.

5 REPLIES 5

Supriya39
Giga Guru

Supriya39_0-1677759964883.png