Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How can I cancel a request from a sequenced order guide?

Casey23
Tera Guru

I have an order guide with two RITMs in it. We are also using the Order Guide Sequential Fulfillment plugin because RITM 2 shouldn't be triggered until RITM 1 is completed. Completing RITM 1 and triggering RITM 2 is working as expected. But when RITM 1 is cancelled, RITM 2 should also be cancelled as well as the REQ. 

 

I'm new to the Sequential Fulfillment plugin as this is our first time using it. I clicked on "Additional Options" for RITM 2 and set the run condition to "RITM 1 State is not Cancelled" thinking maybe that would at least stop it from triggering, but that didn't work. I'm assuming there has to be a clean way to cancel RITM 2 if RITM 1 is cancelled in the sequencing process, and I'm curious if anyone knows how to do that?

 

As a last resort, I assume I could setup a sub flow in RITM 1 so that it queries the REQ and cancels any open RITM's associated with it. Or I could update the workflow on RITM 2 to check and see if the other associated RITM is closed complete before continuing, but I feel like I'm overcomplicating this.

 

TIA

0 REPLIES 0