0

I am using a task process within a SharePoint 2013 workflow. I have an IF/ELSE statement setup for the task being approved or rejected; however it still continues to Stage 2, despite the outcome. Is there a way to end the workflow after the first rejection?

2

At Transition to Stage make a new if condition to check the value of the outcome variable as the following.

If Variable: Outcome equals Rejected
    Go to End of Workflow
Else
    Go to Stage 2

enter image description here

  • I don't have a "End workflow" action. It is only available in the transition to stage area. – cbbrown Feb 14 '17 at 18:50
  • you are right I have updated my answer – Mohamed El-Qassas MVP Feb 14 '17 at 18:57
  • I can't use anything but "Go-to" actions in the Transaction to Stage area. – cbbrown Feb 14 '17 at 19:51
  • select go to action then right click > select delete action, now in transition section, there is no anything , so just perform right click to add if condition, please if you can't do it tell me to post detail steps with image in my answer – Mohamed El-Qassas MVP Feb 14 '17 at 19:56
1

That should be in the transition. There should be a variable that was generated called Outcome the transition (if not you can set the variable after it gets completed) should have:

If(Outcome equals "Rejected")
  Go to "End of Workflow"
0

Thanks for your responses. I had to completely remove any current "go-to" statement from the Transition to Stage phase, save and refresh. Then I was able to insert the IF/ELSE statement. I'm not sure if that last part is absolutely necessary for everyone, but it worked for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.