I am trying to create an approval workflow based off of two separate lists.
On my first list I have users submitting their weekly Time Sheet. One of the SharePoint columns they write to is a People Picker that they use to select their profile.
The Second List has multiple people picker fields. One of the fields is the 'Submitter' people picker. My thought process is to setup this list so the site admin can update the list with new employees. Those employees have specific users that would approve their time sheet.
So if User A submits, Approver A is selected within the flow. If User B submits, Approver B is selected to receive the approval email.
I need to filter my approvers list based off of whatever claims profile is submitted on my time sheet list.
Thanks!
I think I solved this for a people column that allows multiple people. Instead of using the equals (eq) function use the substringof function. So it would look like substringof('Employee Email', Submitter/EMail). Where Employee Email would of course be your dynamic content that populates the employee email address. The others left you hanging on this one. Hope this helps!
Getting the Error when trying to filter the People picker field with Get items -
The query is not valid.
clientRequestId: bcd58e92-4ba7-42a0-bfba-17ac4acc5031
serviceRequestId: bcd58e92-4ba7-42a0-bfba-17ac4acc5031
Approver/EMail eq 'rex.jones@technet.com' - This query isn't working
The static email address was just to show you the syntax - you can use the SharePoint column reference assuming the you select column name followed by email from dynamic properties.
You screen shot shows that you forgot the single quotes around the email address.
@ScottShearer
Thank you for the reply. I tried the following, but my flow still failed at the Get Items stage. I'm not able to enter a static email address in, as the email address changes per user submitting on their time sheet.
This blog post will explain how to filter on a person or group column.
The short answer is that your filter need to look something like this:
Submitter/EMail eq 'jimg@abc.com'
Note the following:
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,089
Most Valuable Professional