Flow action calling error

User660846
Tera Expert

Hi All,

I am facing a strange issue while calling a flow action from a script include. I created a flow action to get some application details from a different instance. The flow is taking the instance url and application scope as inputs. When I am testing the action using the test button, it is returning expected result.

But when I am trying to call that action from a script include, the action is not returning any value. when I checked the flow context, I found the action is not taking inputs from the script.

find_real_file.png

here is the code snippet to call the action-

var inputs = {};
inputs['instance'] = "<instance name>";
inputs['app'] = "<application scope>";
var result = sn_fd.FlowAPI.getRunner()
.action('<scope_name>.<action_name>')
.inForeground()
.withInputs(inputs)
.run();
var outputs = result.getOutputs();
var details = outputs['version'].toString();
 
This is not work for only one action. For all other actions it is working. Only thing is this action was created in Rome version and it is moved to a different instance which in in Quebec version.
 
Could you please help me with this issue?
1 REPLY 1

shloke04
Kilo Patron

Hi,

Please refer to below thread on community which talks on a similar topic and let me know if you are still stuck:

https://community.servicenow.com/community?id=community_question&sys_id=29080c1adb8224d0f77799ead396191b

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke