What's the correct way to complete a RITM flow in Flow Designer?

Max Nowak
Kilo Sage

Hi,

I'd like to know the correct way to complete a RITM flow. As of now, I'm a little confused, because it seems like the correct way would be to set the stage to "complete" via those yellow stage bars in flow designer - but I can only add stages before an action, not after it, so setting the stage can't be the last action in a flow.

Because of that, I have always done the following:

find_real_file.png

But this is redundant, since setting the stage to completed also sets the state of the RITM to closed complete, which is observable on the record, which gets closed twice - once by the stage, then by the update item action. I could, of course, add some bogus action that actually does nothing, just to be able to set the stage. But there must be a better way to do this?

Nothing I tried so far works or is more elegant. I can't just use the update record action, because the stage field on the RITM table does not contain the "Completed" stage. If I omit setting the stage, the parent request won't get closed, because that business rule triggers on the stage field, not on the state field.

I'd like to know how other people using the flow designer handle this.

Thanks in advance for your help,
Max

7 REPLIES 7

Maik Skoddow
Tera Patron
Tera Patron

Hi

ServiceNow is shipped with an example Flow which will demonstrate to you how a RITM can be finished: 

Open in your instance /$flow-designer.do?sysparm_nostack=true&sysparm_use_polaris=false#/flow-designer/30f3d26187e92300e0ef0cf888cb0b91

Maik

Hi Maik,

are you sure that this is an OOTB flow? I can't find it on any instance I have access to. What's the name of the flow?

suvro
Mega Sage
Mega Sage

Set the stage complete to the previous action. Stage complete signifies that this the last action required after which RITM will be closed. Try this out no need to update the record explicitly

Hi Suvro,

sorry, but that doesn't make any sense to me. Setting the stage to complete will also set the RITM state to "closed complete" and will, if this is the only RITM in the request, also close the Request.

It seems very strange to do all that, and then still have a catalog task open.