0

How can I properly end this workflow?

  • I want to start a workflow whenever the Returned Device column is changed to NO.
  • Then, if Returned Device equals NO and the Returned Date is overdue (less than Today), send an email to the user who was issued a device Assigned To.
  • Now, (I want to end the workflow) When Returned Device is set to YES, END workflow.

Where do I Transition to End of Workflow? Do I even need to? I want to avoid workflow instances running in the background if I don't need to.

enter image description here

List: enter image description here

This is for SharePoint Online

Updates: enter image description here

Final:

enter image description here

1

just in the Go To "stage" action add IF statement and select In Progress and End of Workflow. This action add to all ends of your workflows (if you have If statement there can be more of them)

enter image description here

enter image description here

Hope it helps!

  • At which point is the ‘Transition to stage’ evaluated and how frequent (ie. everytime Loop 1 is evaluated etc...)? – jes516 Feb 28 at 0:27
  • its in every Stage at the end, you are here chosing the next Stage it will do (or the end of WF) dont forget to mark it as answer. thanks – Zdeněk Vinduška Feb 28 at 6:39
  • I added another screenshot with the IF statement in Transition to stage. – Zdeněk Vinduška Feb 28 at 6:49
  • i added an if statement to the Transition to stage but the workflow doesnt end when I change Returned Device to YES. I re-published the workflow and I terminated the old ones with no success. Anything you can think of? – jes516 Feb 28 at 19:17
  • ok, so try create new Stage when you will end WF and in IF statement go to this new Stage, I dont know why, it should be working, try it this way, you can also add Log action to the IF statement so you will see in log where it going. – Zdeněk Vinduška Mar 1 at 6:33

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.