- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 02:18 AM
I want to call the Flow created by Flow Designer from Virtual Agent Designer.
I ran the code below, but an error was output.
The target flow is global scope and the internal name is correct, but why can't I find it?
var inputs = {};
inputs['current'] = gr; // GlideRecord of table:
inputs['table_name'] = 'test_table';
sn_fd.FlowAPI.executeFlow('global.va_research', inputs);
<Error>
vaInputs.__silent_ScriptedAction_f4164b421ece4a9ab006608b097850a6=true;null;
Root cause of JavaScriptException: com.glide.plan.runners.FlowObjectAPIException
: com.glide.plan.runners.FlowObjectAPIException: The action named: va_research does not exist within application scope: global:~...
Solved! Go to Solution.
- Labels:
-
Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 03:40 AM
Hi there,
Have you double checked that "va_research" is published?
Have you also considered applying the "Action" utility? This way you don't have to script this.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP
---
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 03:40 AM
Hi there,
Have you double checked that "va_research" is published?
Have you also considered applying the "Action" utility? This way you don't have to script this.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP
---