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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard