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-01-2023 02:39 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 03:36 AM - edited 03-01-2023 03:37 AM
I tried this increasing the quota time but no luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 06:08 AM
@Supriya39 is the flow context appearing for other flows.
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 07:23 PM
Yes the execution flow logs are appearing for other flows. Only when the flow is executed from action via script its not appearing