Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Call spoke action from script include?

janerling
Giga Contributor

Hi all,

I´m very much a newbie on the ServiceNow platform, so I hope the terminology of my question is correct.

 

I have a spoke action that I created using Flow Designer, which takes an input parameter, runs a REST API call, and returns a parameter with the response of that call.

 

Is there a way to call this action from a script include, or can it only be used in flows? Ideally I´d love to be able to do something like:

returnvalue = SpokeAction(input)

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Have a look at this page, contains several examples and explanation. Based on your question, I think you can use startAction.

 

https://developer.servicenow.com/dev.do#!/learn/learning-plans/utah/servicenow_application_developer...

 

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

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@janerling 

are you saying it's a custom flow action?

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Have a look at this page, contains several examples and explanation. Based on your question, I think you can use startAction.

 

https://developer.servicenow.com/dev.do#!/learn/learning-plans/utah/servicenow_application_developer...

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Fantastic! Looks exactly like what we're trying to accomplish here. Will give it a try! Thanks a lot!