Flow designer creating 2 tasks one after other but the other flow is closing the RITM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2022 07:19 AM
Hi,
We have a catalog item which has a flow to create 2 tasks one after the other which is working as expected from flow. the challenge here is we have a flow in flow designer which will run on the SCTASK for all the items to see if there are inactive Tasks close the RITM(this ability was developed because few users create manual tasks). So now for the new catalog item when the first task is completed RITM is setting the state to closed and then the 2nd task is getting created.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2022 07:25 AM
Hi,
so closing RITM once task is closed should not create new tasks?
the flow linked to catalog item should have no impact on the above update.
regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2022 07:32 AM
So Flow should run as per the requirement which means it should create the 2nd task once the 1st one is completed but it shouldn't close the RITM.
The RITM should get closed when the 2nd task is also closed. is there any way that i can use wait for condition?
I tried wait for duration 10 seconds which doesn't look good for other items where once the task is closed they have to wait for 10 seconds to see the RITM closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2022 07:44 AM
Hi,
then your logic to close RITM should check if this is the last active task which is getting closed for the current RITM; then only close the RITM
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2022 07:50 AM
I am trying to use this script in the flow designer wait for condition activity