I want to call the Flow created by Flow Designer from Virtual Agent Designer.

Akihisa Abe
Tera Expert

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:~...

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

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

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

1 REPLY 1

Mark Roethof
Tera Patron
Tera Patron

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

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn