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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter Query GetItems ...
Power Automate
Answered

Filter Query GetItems Issue

(0) ShareShare
ReportReport
Posted on by 100

Hi Mates,

I am trying to featch records from SharePoint List using GetItems

I would like search on department and Designation. I would like to get Manager and Supervisor records. my query is like below but its not working its returing 0 records

 

Department eq 'A' and Designation eq 'Supervisor' and Designation eq 'Manager'

 

please let me know where i am doing mistake.

 

Thanks in Advance

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,280 Most Valuable Professional on at

    Can you tell me what type of columns are department and designation?

  • NikTan Profile Picture
    100 on at

    Hi Scott,

    Both the column have singe line of text data type

  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @NikTan,

     

    I am afraid that it is not possible to filter one column twice at the same time. If you have two columns, say Designation1 and Designation2, then the code should work as expected.

     

    I have made a test using the following code and it works fine.

    Department eq ‘A’ and Position eq ‘Manager’ and Position1 eq ‘Supervisor’

    1.PNG

     

    Best regards,

    Mabel Mao

  • NikTan Profile Picture
    100 on at

    Hi Mabel,

    I dont have two columns, I have only one column on which i need to filter the records

    As below.

    Department eq ‘A’ and Position eq ‘Manager’ and Position eq ‘Supervisor’

     is there any alternative solution for such kind of query

  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @NikTan,

     

    What’s the exact column name?

    Could you share a screenshot of your list structure? It will be better for understanding.

     

    Best regards,

    Mabel Mao

  • Verified answer
    NIchageri Profile Picture
    7 on at

    Position Cannot have 2 values at the same time. 

    Try something like-

    Department eq ‘A’ and (Position eq ‘Manager’ or Position eq ‘Supervisor’)

     

  • ScottShearer Profile Picture
    25,280 Most Valuable Professional on at

    @NikTan:

     

    The syntax proposed by @NIchageri will work for you:

    I created a test Flow with the following filter than ran successfully:

    ComboFilter.jpg 

     

    However,  you will probably want to convert the columns on which you are filtering to choice columns.  If you are using free text columns, it is unlikely that your users will enter data consistently.  Therefore, the results of the filter may not be as you expect.  For example, some may enter Manager and other MGR.

     

    Scott

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard