- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 05:38 AM - edited 09-04-2023 05:44 AM
Hello,
We have a catalog item where users can book multiple dates when they want help in a teaching room. At present when the user submits the request all of the information gets put into one catalog task. What we like to do is for each date to be a separate task. This means that a separate help desk agent can be assigned to each date. Is there a way to do this in Workflow or would Flow Designer be better suited?
Thanks in advance
David
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 06:56 AM
Hi @davidsmith,
You can achieve this from several different ways but you'll need to script, i let some approach using flow and workflow:
1) Using flow, i'll retrieve the variables needed with the 'get catalog variables' action and then I will create a custom scripted action for creating the sc_task using the retrieved cat variables as input for that action. You'll need to pass each variable as input so it won't dinamyc.
2) Using workflow, you can create a custom step and then insert record for each date into sc_task table. I'll retrieve all catalog variables and then create an array for looping over it and create each task as deserve.
In both cases, you'll need to retrieve the variables and create and array or structure for looping over it.
☆ Community Rising Star 22, 23 & 24 ☆
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 06:14 AM
you can create multiple tasks both via workflow and flow designer
what's the current approach workflow or flow?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 06:56 AM
Hi @davidsmith,
You can achieve this from several different ways but you'll need to script, i let some approach using flow and workflow:
1) Using flow, i'll retrieve the variables needed with the 'get catalog variables' action and then I will create a custom scripted action for creating the sc_task using the retrieved cat variables as input for that action. You'll need to pass each variable as input so it won't dinamyc.
2) Using workflow, you can create a custom step and then insert record for each date into sc_task table. I'll retrieve all catalog variables and then create an array for looping over it and create each task as deserve.
In both cases, you'll need to retrieve the variables and create and array or structure for looping over it.
☆ Community Rising Star 22, 23 & 24 ☆
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 05:05 AM
Hello,
That is most helpful. I will take a look at both methods.
Kind regards
David