- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 12:14 AM
Hi,
I have a catalog item with one single variable.
User can chose application from cmdb_ci_appl.
After submitting, the task should automatically run a script that will get the application the user enter.
I was thinking using a flow but i don't know how to pass the variable name from the Task to the script in the flow
I have a line like this :
var application_name = ["NAME OF THE APPLICATION"];
The application name chosen by the user in the catalog item should goes here in the flow script.
Any idea how to achieve this ?
Regards,
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 04:38 AM
Update to say that i succeed.
I create an input variable like this :
and called it in the script :
Thanks for the helps!
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 12:20 AM
Hi Nico,
You can leverage get catalog variable action to get the catalog variables and use those data pills for the subsequent action.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 12:20 AM
Hi you need to use get catalog Variables action. Once you use this action and select catalog item.you can see all the variables on right side jus drag and drop the variable you need
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 12:44 AM
Hi,
I add the Get Variable action.
But how i pass this variable into the script ? There is no options to do it.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 12:48 AM
Hi,
Is that a custom action?
If yes then it should have some input variable then only you can send the data
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader