I am trying to set a field value for reviewer 1 when last modified by reviewer 1 and similarly for other reviewers. the reviewer1 is a person / group field with account as display, how can i achieve this. below is the screenshot of my workflow which is not working.
Log out the variable you are comparing against your switch branches to see if it holds the value you would expect. It is easy to get "additional and unexpected" characters when dealing with certain data types... mainly people, times, dates
You can capture the approver's name .
1.You can save the name of the person who had acted on the task (from : Modified by field of SharePoint list).
2.Save this name in a WF Variable and compare it with the SharePoint Groups .
3.Accordingly your switch will work.
4.I would suggest you ti hard code the users or values in SWITCH case if it is less than 5.
Hope this works for your scenario.
Bashya Rajan A