web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Struggling with Get Items
Power Automate
Answered

Struggling with Get Items

(1) ShareShare
ReportReport
Posted on by 6
Hi
 
I made a post a few weeks ago and was advised that Get Items is what I needed to fix the issues I'm having (having to update emails in multiple forms if there's a change of department head). I have been trying to make this work since and have not managed to get it to do what I need. I've read a lot of help pages and how to guides but none of them have actually helped.
 
What I want to happen is when a department is picked on the form, the flow in power automate picks the relevant budget holder from a list to send an approval email to.
 
I've created a two column list that has 81 rows in it (including headers). The columns are titled "Department" and "Email". The contents of the Department column is set up in the exact same way as the list of departments in my forms so should be an exact match. Each department is named differently. The list is on sharepoint and I can pull it into Get Items fine. In the flow it lets me add the Email column from the Get Items stage. When I try to run a test it fails instantly due to a Bad Request at the Get Items stage.
 
I've tried using different filters based on what I've read but the result is always the same. My list is just called Test currently.
substringof('Test',Email) - Error "Column 'Email' does not exist."
Department eq 'Test' - Error "Column 'Department' does not exist."
substringof(Department,'Test') - Error "The function operator 'substringof' is not supported or its usage is invalid."
 
I'm not sure what I need to put in the Filter Query to get this working. The list is not a large dataset and, from what I've read, most of the filter options appear to be about reducing the amount of data is looked at. I need it to look at the full list as any of the departments could be entered on the form.
 
Am I even anywhere close to the right track with the filter queries I've used above? I'm completely stuck.
Categories:
I have the same question (0)
  • David_MA Profile Picture
    15,273 Super User 2026 Season 2 on at
    Is the list with the 81 rows that contains the e-mail and department fields a lookup on your other form, or do you have a choice field in your other list and you're using get items to then get the item based on the choice?
     
    If you are using the latter (a choice field on the list to submit a change), add the list of with the 81 rows as a lookup field in the other list and be sure to include the ID value. For example:
     
     
    Then in your workflow you can use the Get item (singular) action to get the item selected in the drop-down to get the rest of the data from the other fields in the lookup list based on the ID.
  • Suggested answer
    11manish Profile Picture
    3,849 Super User 2026 Season 2 on at
    Your overall approach is correct—using Get items with a Filter Query is the recommended solution for maintaining a single department-to-email mapping list. The "Column does not exist" error strongly suggests you're using the display name instead of the internal SharePoint column name. Verify the internal names of both columns, then use a filter.
  • Verified answer
    Valantis Profile Picture
    7,006 Super User 2026 Season 2 on at
     
    The error is caused by using the display name of your columns instead of the internal SharePoint name. SharePoint column names with spaces or special characters get a different internal name.
     
    To find the internal name of your columns:
    1. Go to your SharePoint list
    2. Click the column header > Column settings > Edit
    3. Look at the URL in the browser address bar  the internal name appears after Field= in the URL
     
    For a column called "Department", the internal name might be Department (same) or Department_x0020_ if it had spaces at some point. For "Email", it might be Email or something else.
     
    Once you have the internal names, your filter query should be:
    Department eq '@{triggerBody()?['Department']}'
    Replace Department with the exact internal name and replace the dynamic content with whatever your form passes in for the department value.
     
    If you share a screenshot of the URL when editing each column, I can tell you the exact internal name to use.
     
      Best regards,

    Valantis   ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/ 💼 LinkedIn ▶️ YouTube
  • Ellis Karim Profile Picture
    12,236 Super User 2026 Season 2 on at
     
    How to find the internal name of a SharePoint column, please see this post:
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!
  • CD-11060934-0 Profile Picture
    6 on at
    Thanks for all your help. Apologies for the delayed response (31/07 is our year end). I've managed to get this working now having found the internal names. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 306 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 169 Super User 2026 Season 2

#3
Haque Profile Picture

Haque 131 Super User 2026 Season 2

Last 30 days Overall leaderboard