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

priyasunku
Kilo Sage

Hi @Supriya39 

 

You have to increase transaction quota rule for Rest calls. Please check the below servicenow link

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0859622

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

I tried this increasing the quota time but no luck

priyasunku
Kilo Sage

@Supriya39 is the flow context appearing for other flows.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

Yes the execution flow logs are appearing for other flows. Only when the flow is executed from action via script its not appearing