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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Filter Get Lists Not Working

(0) ShareShare
ReportReport
Posted on by 1,374 Moderator

I am trying to see if a list exists by name, and if not, create that list.

 

I am using Get all lists and libraries for my given Site:

IPC_ahaas_2-1665417428970.png

 

and it works:

IPC_ahaas_1-1665417387109.png

 

Then I use Filter array where Type equals 100:

IPC_ahaas_3-1665417470965.png

 

I get zero results:

IPC_ahaas_0-1665417734763.png

 

Not sure why, this seemed pretty straightforward.

I tried putting the results in an Array variable first, then filtering that Array and got the same issue.

I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at
    Re: Filter Get Lists Not Working

    Hey @IPC_ahaas 

    I also tried all the things and they didnt work. Pretty surprised.

    I did try this and it worked:

    Sundeep_Malik_0-1665420864746.png

    Btw what does that type mean?

     

  • IPC_ahaas Profile Picture
    1,374 Moderator on at
    Re: Filter Get Lists Not Working

    Yeah, it doesn't make any sense that it doesn't work.

     

    The "Type" distinguishes a List vs a Document Library which is the silly way SharePoint still considers them "Lists". From my testing, an actual "List" has a "Type" of 100. A "Document Library" has a "Type" of 101.

     

  • Verified answer
    v-liwei-msft Profile Picture
    on at
    Re: Filter Get Lists Not Working

    Hi @IPC_ahaas 

     

    Could you please tell me:
    Do you want to get all Lists in Site Address instead of librares?

    1. You can use the Get lists action directly. 

    vliweimsft_0-1665471088325.jpeg

     

    2. If you want to use Get all lists and libraries and then filter array, you need to input 100 as string type.

    vliweimsft_1-1665471100577.png

     

    Best Regards,

    Levi

     

  • IPC_ahaas Profile Picture
    1,374 Moderator on at
    Re: Filter Get Lists Not Working

    Well, that solves my problem of needing to filter for 100, as now it only pulls Lists with a value of 100. The Filter still doesn't work oddly if you try it. You'll get a blank array, but I don't need it now as I was eventually looking for (true) Lists that had a specific name.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard