Flow Designer - executing flow using script in action does not show execution logs of the flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 01:44 AM
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 -
(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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2023 04:26 AM