cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NikTan Helper III
Helper III

Get Item SharePoint Filter Query Issue

Hi Team,

I am using Get Iteam method to retrun the approval name from SharePoint List

To filter out the result i am sending Department Name and Role to Query filter , but i am facing issue while query filter

 

I am using below query 

 

Department eq 'Design Admin' and Role eq 'HRReview'"

 

And i am having below sample data in SP list 

 

Depatment Name
1. Design Admin

2. Design Admin SG

3, Design Admin NG

 

because of that it returns me 3 set of records instage of one .

can you please help me to resolved this issue.

11 REPLIES 11
chandrashekhar Advocate V
Advocate V

Re: Get Item SharePoint Filter Query Issue

Hi @NikTan,

 

Use this:

 

Department eq 'Design Admin' and Role eq 'HRReview'

 

Issue : your query is having extra quote at end

 

Also, confirm if it is "Department"  or "Department Name" to be added in query.

 

Regards,

Chandrashekhar,

Pune, India

 

 

NikTan Helper III
Helper III

Re: Get Item SharePoint Filter Query Issue

Hi chandrashekhar,

Thanks for reply.

Its copy paste issue in forrum but in my acitivty it is 

Department eq 'Design Admin' and Role eq 'HRReview' like this only

 

And column name is Department.

Still i am getting mutiple records. Please help 

chandrashekhar Advocate V
Advocate V

Re: Get Item SharePoint Filter Query Issue

Hi @NikTan ,

 

please share the screen shot of flow step.

 

 

Regards,

Chandrashekhar

NikTan Helper III
Helper III

Re: Get Item SharePoint Filter Query Issue

Please find below screenshot 

 

Capture.PNG

NikTan Helper III
Helper III

Re: Get Item SharePoint Filter Query Issue

Please find below screenshot 

 

Capture.PNG

chandrashekhar Advocate V
Advocate V

Re: Get Item SharePoint Filter Query Issue

Hi @NikTan,

 

The query seems correct:

 

Please cross-verify following things:

1. "Department Name"  and "HRReview" names are correct and use internal of columns. Since it is highly case sensitive. "RR" can make a difference in "HRReview"

2. Please check in list  by filtering on this two values, may be there are mutiple records satifying the and condition.

 

Please revert. if still the issues exists, then we can use "Send an http request to Sharepoint" action provided by flow.

It is also simple to use and provides filtered data with mutiple filter conditions.

 

Regards,

Chandrashekhar

Community Support
Community Support

Re: Get Item SharePoint Filter Query Issue

Hi @NikTan,

 

Please share more details about the "Department" or the "Department Name" field and the "Role" field in your sharepoint list?

What is the type of the  "Department" or the "Department Name" field and the "Role" field?

 

Please share more details so we would try to provide a proper workaround for you.

 

Best regards,

Alice

NikTan Helper III
Helper III

Re: Get Item SharePoint Filter Query Issue

Hi All,

Both Department And Role field is Single line of text. 

We had imported the data from excel to SharePoint List using Import From Spreadsheet option.

Please let me know if any other details required.

 

 

Community Support
Community Support

Re: Get Item SharePoint Filter Query Issue

Hi @NikTan,

 

I have made a test on my side and don't have the issue that you mentioned.

The screenshot of the sharepoint list as below:

Capture.PNG

 

The screenshot of the flow as below:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

 

Please take a try to create a new list with the Department and Role field to see if the issue still exists.

 

 

Best regards,

Alice

NikTan Helper III
Helper III

Re: Get Item SharePoint Filter Query Issue

Hi 

Highlighted
Michelangelo Advocate I
Advocate I

Re: Get Item SharePoint Filter Query Issue

I know I am coming late to the game, but you need parantheses. 

 

(ColumnName1 eq 'Filter1') and (ColumnName2 eq 'Filter2')

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,591)