using switch case set a field value comparing modified by with reviewer

  • 9 February 2017
  • 3 replies
  • 0 views

Badge +2

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.

198523_pastedImage_1.png


3 replies

Userlevel 5
Badge +12

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

Badge +6

Hi Altaf,

            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.

Regards

Bashya Rajan A

Userlevel 5
Badge +12

Were you able to log out your values to see if you were comparing the values you expected?

Reply