RITM should start only after another RITM is closed complete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-10-2024 08:19 PM
I have a order guide in which when a request is raised it will create 5 RITMs ( 5 different catalog item and 5 different flow designer) my requirement is
test 1, test 2, test 3 , test 4 catalog item ritm should be finish until then test 5 catalog item RITM should be on pause.
Is this doable , if it is how can we achieve .
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-10-2024 09:04 PM
Hi @TEJAS ,
You can refer to this article on how to implement:
https://servicenowguru.com/system-definition/order-request-items-order-guide/
This is a sample code which i have used in past where i had a requirement of starting 2nd RITM when the first gets completed:
var gr = new GlideRecord('sc_req_item');
gr.addQuery('request', current.request);
gr.addQuery('cat_item', "99fb579bdbbb73401e49f9051d96191f");
gr.addQuery('state',4);
gr.query();
gs.log(" For RITM " +current.number +" the ROW Count is " +gr.getRowCount() );
if(gr.getRowCount() == '1'){
answer = true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-10-2024 09:43 PM
Hi @TEJAS ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-10-2024 09:33 PM
@Community Alums ,
Thank you for the response
This can be done using flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-10-2024 09:45 PM
Yes indeed you can use flow to accomplise this.
