This SharePoint 2013 workflow tutorial explains, SharePoint 2013 designer workflow, how we can check if the item modified by from list of people in the SharePoint 2013 designer workflow? My requirement was simple, I wanted to check if a document is modified by anyone from a group of people using the SharePoint 2013 designer workflow.
As per requirement, one thing that comes to mind is you can add a SharePoint group and then check by using If Modified By workflow action. But do not know why If Modified By action works for a single user it is not working for a group.
I even saw some articles regarding this. Even if in MSDN it explains it will work for a people or a group but it works for only people. If anyone knows more about it, you are always welcome to share your knowledge.
So I searched a lot and finally got one article which solved the issue. I am simplifying this with my own words.
For this, I have taken a SharePoint list and how many users I want I can add into the list. For this, I have created a custom list and here I did not modify the Title column nor I make that as a required field. I added another column to it name as Approver column and basically it is a people picker control.
Here you can add users you want to the list individually as a list item.
Then edit your workflow and add one If any value equals… condition. Here my requirement is to check the user who modified the item belongs to this list of users or not.
So in the first any value I have given the condition like Current Item: Modified By.
The next condition is important. Click on the next workflow dialog box and then from the DataSource and in my case the list name is Approvers. Then from the Field from source, select the people picker column name and in my case, it is Approver, and return the field as Display Name.
Then in the Find the List Item section, choose the field as Approver and then in the Value click on the fx button and then choose Current Item: Modified By and then Return field as Display Name.
So finally the dialog box should look like below:
Now Save and publish the workflow it will work as expected.
You may like following SharePoint workflow tutorials:
- SharePoint 2013 designer workflow changes not updating
- How to find Workflow History in SharePoint 2013?
- Set People Picker field to empty or blank in SharePoint designer workflow
- Set Text field to empty or blank in SharePoint 2013 designer workflow
- SharePoint Designer 2010 Workflow Email Link To Edit Item or Display Item
- Step by Step Nintex Workflow tutorial for Office 365 SharePoint Online
I hope this SharePoint workflow tutorial explains, how check if the item modified by from list of people in the SharePoint 2013 designer workflow?
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com