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 / "In" operator in filte...
Power Automate
Unanswered

"In" operator in filter query to get items from 2 SharePoint lists

(0) ShareShare
ReportReport
Posted on by 2

Hi Fam!

 

Basically, I have 2 SharePoint lists, List1 has all the CompanyNames and List2 has select CompanyNames.

I just want to get all items in List1 that does not exist in List2.

 

I used a string variable and appended all CompanyNames to it.

Would've been easy if there was a IN operator then I can maybe do a NOT IN filter in the query box of the Get Item step..

substringof works the other way around, and I cant think of a reverse way of doing this...

 

Any workaround? Any suggestions is greatly appreciated!

 

Thanks!

Categories:
I have the same question (0)
  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi @nra_powerapp 

     

    You can use "intersection" Function , this function returns the common items in two different arrays. in your case List 1 get items and List 2 Get items response.

     

    Link for reading:

    https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#intersection

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

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
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard