Skip to main content
Nintex Community Menu Bar
Solved

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

  • June 7, 2023
  • 10 replies
  • 739 views
  • Translate

Forum|alt.badge.img+15

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)? 

Best answer by rickdemarco

@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.

View original
Did this topic help you find an answer to your question?

10 replies

Garrett
Forum|alt.badge.img+16
  • Scout
  • 904 replies
  • June 7, 2023

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

Translate

Jake
Forum|alt.badge.img+13
  • Scholar
  • 319 replies
  • June 7, 2023

Hey @brandiwoodson 

 

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

Translate

Forum|alt.badge.img+15
  • Author
  • Communicator
  • 373 replies
  • June 7, 2023

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? 

Translate

rickdemarco
Nintex Employee
Forum|alt.badge.img+8
  • Nintex Employee
  • 69 replies
  • Answer
  • June 8, 2023

@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.

Translate

Forum|alt.badge.img+15
  • Author
  • Communicator
  • 373 replies
  • June 11, 2023
rickdemarco wrote:

@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. 

Translate

Forum|alt.badge.img+3
  • Rookie
  • 22 replies
  • February 3, 2025

@rickdemarco any progress on this? It's been over a since the questions was asked. I can query active directory for the user via email, but that does not return the ID needed to find that same person in the SharePoint list. If the ID was returned that would at least be somewhat helpful.

Translate

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2467 replies
  • February 4, 2025

Would querying the User Information list with the email address to return the ID help with this issue?
Example https://YourTenant.sharepoint.com/_catalogs/users/detail.aspx

Translate

Forum|alt.badge.img+3
  • Rookie
  • 22 replies
  • February 4, 2025

@SimonMuntz  I queried the user using the Azure Active Directory command to Get Details, that returned everything except the ID. So, you are suggesting that I make a Rest call?

Translate

SimonMuntz
Nintex Employee
Forum|alt.badge.img+22
  • Nintex Employee
  • 2467 replies
  • February 4, 2025

Hi ​@jschmidt7,

The user profile in Active Directory (AD) and the user information in SharePoint profiles are different. If you want to use the Query List action, you'll need to find the user's SharePoint ID. There are a couple of ways you can do this! Garrett, for example, adds the user to a SharePoint list and then queries the user for their SharePoint ID. Another option, as I mentioned, is to query the User Information list, which could involve making a simple API call. Whatever works best for you!

Translate

Forum|alt.badge.img+3
  • Rookie
  • 22 replies
  • February 5, 2025

@SimonMuntz , Ook, thanks for the clarification. I will need to query the User Information list then. 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings