0

How do I create an "If / Else" statement in SPD2013 for 3 task outcomes in a SP workflow?

2 Answers 2

0

Just create 3 If branches in a step, each one checking if the status equals one of the statuses in your outcome. Then in each of those, perform the necessary logic to handle each of your scenarios. You don't have to have else branches in them. If it doesn't match the first if, it will continue to the second if. If it doesn't match the second if, it will go to the third.

2
  • Well there is a reason why If-ElseIf-Else is there and not only If-Else. So I would suggest use it. In this case, it will depend on response. So have to take an outcome from the response as well Aug 27, 2014 at 17:20
  • Okay, thanks. I think my problem was that I was trying to put all 3 task outcome if conditions into the transition to stage box. Aug 27, 2014 at 17:25
0

I think you will have to either manage another column and check it if approved, then which branch it should go. Then another way is using the percentage of completion. When completing the task if it is 0% completed, then Outcome 1. If 50% then outcome 2, If 100% then outcome 3.

Then take the value of the particular column (custom/ percentage) and then assign it to a new variable by querying through task id and then put the if-else to check which branch it should proceed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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