
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 03:13 AM
OK So I wasnt sure how to word this 😖
Basically I want to:
1. Create a task.
2. Have variables for that task BUT I dont want to have to use a pre-created field either from the Cat Item Slush Bucket or on the Task Table.
In essence, is there a way to either call a field (maybe a variable set) without having to have that variable set linked to the cat item? Or, create almost temp fields for that task instance to be used?
I have seen the following posts on similar topics:
Solved: Dynamically Add Variables to A Task (Flow Designer... - ServiceNow Community
Adding Variables to a Task via a script instead of... - ServiceNow Community
But both (seem) to require the fields to be associated to the RITM / Cat Item.
Is what I am thinking possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 05:29 AM
If my understanding is correct, and this 'variable' is a data point that requires input by a user in the task stage, I'm not sure how you can navigate around this.
Assuming the initial request is triggered by a request (Eg User provisioning as a typical use case), I would create a variable (variable set) at the Item level which could then be used as the task stage to collect and store input.
This will allow full reporting and visibility.
Obviously, just guessing and thinking out loud here.
To help others (and for me to gain recognition for my efforts), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 04:19 AM
so where should the field values be set with and from where?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 04:27 AM
Good question Ankur, its just a case of wanting to update values without having to assign the cat item with varibales before hand. Just making the flow more "plug and play"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 04:48 AM
So you want to create a re-usable subflow or action for this to create task?
If yes and I am getting what you are asking then you can create subflow and have a json string as input with list of field and the values you need to set
Then in subflow or flow action you can use script to iterate that JSON and set the field values.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 05:21 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 08:30 AM
Upon further thinking. My requirement really is how can I have this so that it works across various Cat Items.
Lets say I have a Cat Item for "Laptop" and another for "IPhone"
I want a flow that can be used for either.
I then also want within that flow a task that can call a set of questions, regardless of which Item was selected, without me having to specifically select the cat item in that flow?