- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2020 06:28 AM
Hi everyone, hopefully this is a simple one. I am trying to use the 'Do the following until' flow to create tasks on a RITM. I've created a Service Catalog item that a customer can use to select the number of tasks to create with the numeric scale, which according to ServiceNow returns an integer. I've also created a counter that adds one to a variable every time the 'Do the following until' runs. When I try to do the until condition I input the data pill from my counter variable and use the is condition and compare it to my number_of_tasks variable but it doesn't seem to work even though both are integers in the flow. How do I get the condition to compare integers and not strings? Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2020 04:18 PM
Hi
Instead of using a counter variable, do a count of the task records created until tasks created is equal to the number of tasks requested.
So your flow would look something like this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2020 04:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 05:38 AM
I didn't realize this was an option and it seems to be the solution for my problem. Thank you for responding!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2023 10:42 PM
What if the task records were never created? Would it result in a thread lock or affect the system's performance?