This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi all, I think this should be fairly simple, but I'm unfamiliar with how some of the actions work in flow designer.
Requirement: (working from an RITM)fire two tasks at the same time (I have this working using "run in parallel")
If either task is closed cancelled, update the other stating the cancel reason. Then close any remaining tasks, the RITM and the REQ.
I think I need to use a "Do the following until" block. In the "until" conditions, it's easy to add[task 1 = cancelled]OR[task 2 is cancelled]OR[task 1 is closed complete] AND [task 2 is closed complete]
Do I need to put anything in the "do the following" portion of the action block? Is there a better way to accomplish this check in flow designer?
-------------
Using a "do the following until" did not work. If you don't have anything in the "do" portion, then the whole thing times out rather quickly (we are set to 1000 reps before timeout).
Even dropping a wait for 60 seconds timed out, so I'm not sure that really did anything. It certainly did not wait for the timer to run out before running the 'wait' again.
The resolution for me, in case anyone else has a similar question/requirement:
Set up a "do in parallel" action
For each task:
-create catalog task, set wait to true
-look up record (singular) action -- look up other task (parent is target record and number is not task just created)
-IF block -- if current task is cancelled, and lookup record is still active
-THEN block -- update lookup record (with worknotes, close code/notes, state, etc)
also close out all remaining tasks/ritm/req then end flow
Note that I had to do the lookup in each parallel block for the other task created. Otherwise, I was unable to access the data pill for the appropriate records. If I had to do more than two tasks, I may have set it up different, as the redundancy would get out of hand. For only two tasks in a one-off scenario, that I hope I don't need to use again, this worked well.
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/servicenow/...