To call a script include using a flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
HI Community,
I have a requirement, i have created one script include what it does is it will create a sla record in sandbox instances (integration) when it is called. i have tested the script include in background script it works fine no issue.
Now i need to call that script include from flow have been trying many ways but i'm not able to achieve it.
so when the request is raised from a catalog item then in sandbox instances sla record need to be created and with the catalog variables like name type target these will get populate in sla record form and record is created.
what is the issue im facing is im not able to get the sysid of the ritm and pass it
Flow;
trigger condition service catalog
then created one custom action in that script step i have added like this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Glad to know.
That's what I shared below i.e. create input variable for script step.
Hope you are doing good.
Did my reply answer your question?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
create input variable here in Script Step and then map it with the input coming from Flow action
the inputs object you are using in Script Step requires input to that step and not the main Action inputs
Something like this -> same name as that of actions input
Then Use Data Pill -> Select Inputs -> your input variable
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hope you are doing good.
Did my reply answer your question?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader