Rollback in flow designer

Shashic
Tera Contributor

Hello community !

 

Am working on workflow migration to flow designer. my workflow automates a sequence of approvals. for example, when hr case state changes to awaiting approval , approval 1 is triggered and Approval 2 is triggered only after approval 1 is approved and so on till approval 5. workflow includes rollback to activity. if any approval rejected at any stage then workflow updates case state to work in progress and end it.

 

now if case state again changes to awaiting approval then workflow set all the previous triggered approvals to "not yet requested" and reuse them again one by one based approval/rejection sequentially following the workflow logic. however it does not create new approval tasks on the same HR case. I would like to setup the same configuration through flow designer. 

 

following link describes about rollback to activity in workflow:

Workflow: Roll back approvals - Support and Troubleshooting

 

Any suggestions or guidance would be greatly appreciated. Thanks in advance. 

2 REPLIES 2

shubhamseth
Giga Sage

@Shashic 

 

Add a field such as:

Approval Cycle = 1, 2, 3...

Each time the case returns to Awaiting Approval:

  • Increment the cycle number
  • Generate a fresh set of approvals
  • Maintain full audit history of prior approval attempts

Issue resolved? → Mark as Correct


Found value? → Mark as Helpful


Daniel Draes
ServiceNow Employee

Approvals and roll back work different in Flows vs. classic workflows.

 

For Approval this article might be helpful:
https://www.servicenow.com/community/workflow-automation-articles/flow-designer-approvals-overview-w...

 

As for roll-back, this does not exist in Flows. The only similar action is Go Back to, but this will not roll back any actions which happened in between. You will need to implement this rollback feature yourself like clearing out approval records.