cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tiffany-Jo Helper V
Helper V

Get Items>Filter Query

hi

I would like to get the ID of items which has no attachment from share point list,

 

I set Get Items>Filter Query as below.

Attachments eq 'null' (returns SP list items without attachments)

Attachments ne 'null' (returns SP list items with attachments)

 

However,we also could get the same result with Attachments eq /ne 'abc' or any other value, so it seems not to be the perfect resolution since It is difficute to explain to users.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Get Items>Filter Query

 

Hi @Tiffany-Jo ,

 

Please try this, note that the Value of Append to string variable is followed by a space.

56.PNG

58.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Community Support
Community Support

Re: Get Items>Filter Query

 

Hi @Tiffany-Jo ,

 

Here you may need to use Filter Query.

49.PNG

Please try again.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Tiffany-Jo Helper V
Helper V

Re: Get Items>Filter Query

Thank you.I will try.

I would like to confirm whether we could get the same result by using the filter query under Get Items action.

User is using that now and I could not explain clearly why that is not working.

Community Support
Community Support

Re: Get Items>Filter Query

 

Hi @Tiffany-Jo ,

 

Filter Query has certain requirements on the field type, please check the following blog and see if it helps:

https://veenstra.me.uk/2018/11/12/microsoft-flow-filter-queries-in-sharepoint-get-items/

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Tiffany-Jo Helper V
Helper V

Re: Get Items>Filter Query

Hi 

Thank you very much.

That can help to get the accurate ID.

Since I need to send the ID to user by mail.The Flow I set is as below capture.

I would like to confirm whether I could get just the ID number.

I hope the mail content could be ID:60 61 62 63

Now the mail content is:

[{"ID":60},{"ID":61},{"ID":62},{"ID":63}]

 

0828.JPG

Community Support
Community Support

Re: Get Items>Filter Query

 

Hi @Tiffany-Jo ,

 

Please try this, note that the Value of Append to string variable is followed by a space.

56.PNG

58.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Tiffany-Jo Helper V
Helper V

Re: Get Items>Filter Query

Thank you very much.

It is helpful for me.

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
Users online (7,878)