Flow - Requested Item - Loop back to previous step if Approval is rejected / If statement

Peter Caldwell
Tera Contributor

Hello
building out a flow for requesting stock from the IT procurement team.

Basic flow is that we request stock, first catalog task is for IT procurement team to get the stock from vendor, Once completed, the next catalog task is opened for End user Computing (EUC) team to receive the stock and enter it into CMDB and store it away.


I have an approval at the start of second Catalog task to allow the EUC team to say whether or not the stock is what they ordered. if its correct then they approve the ticket and they enter it into CMDB and eventually close the task which closes the requested Item / Request.

if it's not correct (happens often) then I want them to reject the task and I want the flow to go back to an earlier step that basically reopens the first catalog task and tells them to fix up the order and send it again and then the flow will continue on again asking for approval of a new catalog catalog task to enter in stock by EUC.

All awhile, the Requested Item, is getting work notes adding what's happening.

How can I loop back to a previous task in the flow?

any better ideas of how to do the IF statement of if the stock is the correct type

Cheers

5 REPLIES 5

dmi95
Tera Expert

Hi Peter,
Are you using flow designer or workflow to achieve this requirement?

Flow designer (Flow) which is triggered by a Catalog item

 

 

Hi @Peter Caldwell 

Can you try Do the following until flow logic until the details are correct?

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/flow-designer/concept/fl...

Yeah i just learnt about this and had a quick play

 

Right now its basically

  • Create Task 1

    • Do the following Until

      • Wait for Closure of Task 1

      • Create Task 2

      • Ask for Approval

      • 'If'

        • request is approved then wait for closure of task 2

      • 'Else'

        • Set task 2 to 'Closed incomplete'

        • Set Task 1 to 'In Progress'

    • End if task 1 and Task 2 are closed Complete

  • set requested Item to 'closed complete'

Does this look ok?