Solved

How do you grab the person (ID) for query a list (sharepoint online)?

  • 7 June 2023
  • 5 replies
  • 389 views

Userlevel 4
Badge +14

Cannot query by user unless we have the “ID” of the person within the sharepoint list. How do you do this dynamically (varies based on several factors so we only have email addresses at this point in the workflow).

Please enlighten me on how this is achievable with query a list item for sharepoint online and conditions for data sources (same issue - only can filter by ID if data source is using sharepoint online connector)? 

icon

Best answer by rickdemarco 8 June 2023, 08:39

View original

5 replies

Userlevel 6
Badge +16

Hi @brandiwoodson 

Save the Users’ email address (or Full Name) into a People column on SPO site.
Query the same People column to retrieve the ID.
Create a Component Workflow for this if you are regularly using this function.

 

Then you should be able to use the ID in a Query list Item

 

Hope that helps

Userlevel 5
Badge +13

Hey @brandiwoodson 

 

could you share some quick screenshots explaining the steps you want to take? 
 

Userlevel 4
Badge +14

Start Form with people picker (authenticated form)

Workflow will query a list in sharepoint to find list items where the user is listed in a person or group field. 

I have to create a “fake” item in a “fake” list to obtain this “ID” because the conditions do NOT include person field email option. Why does the condition not include email as an option to filter by on a person field? 

Userlevel 3
Badge +8

@brandiwoodson Yes we are looking into how we can support these additional filters in the condition builder (email and display name) jsut like we do in the start event conditions.

Userlevel 4
Badge +14

@brandiwoodson Yes we are looking into how we can support these additional filters in the condition builder (email and display name) jsut like we do in the start event conditions.

Thank you. 

Reply