Sharepoint If Else not working

J_Kai 1 Reputation point
2020-08-02T03:11:01.563+00:00

Hi All,

Good day to all, Im having trouble making this If else statement works. No matter which options i choose, approved or rejected during the workflow. It will go to the execution stage. The outcome15 variable is interger. Any Advice? I read that log to history can check for the trace the value. But log to history doesnt have much informations

15031-image.png

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Jerry Xu 256 Reputation points
    2020-08-03T06:19:42.93+00:00

    I have tested with a similar workflow in my end and it works properly. The only difference is that I do not use current Item: Assigned to in the people field. And please remember to log the outcome variable value before the if condition.
    15084-image.png

    As there is a setting in the task action "Default Outcome", have a try to set it to rejected and try again. If it always goes to FL Review Stage, it means the task is not properly completed by user. Have a test to set the task with a certain user.
    15085-image.png

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.