Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Retrieve all SP lists based on column with value

(1) ShareShare
ReportReport
Posted on by 58
Hi,
 
I want to retrieve all the SP lists that has a column (Owner or Responsible or Manager) with the value (email).
Exclude if a column exists but does not have the value,
 
My current flow able to retrieve all the lists that has either of the columns but got an error if the one does not exist.
 
varOldStaff - email
varColumnExist-array
varColumnNotExist-array
varIsColumnExists-boolean
 
Get lists - retrieve all lists
Apply to each - output from get lists
 
Inside apply to each:
http request (CheckColumn) uri: _api/web/lists/getbytitle('items('Apply_to_each')?['DisplayName'])')/fields?$filter=InternalName eq 'Owner' or InternalName eq 'Responsible' or InternalName eq 'Manager'
Condition: 
length(body('CheckColumn')?['d']?['results']) greater than 0
TRUE
http request (retrieve column) uri: _api/web/lists/getbytitle('items('Apply_to_each')?['DisplayName'])')/items?$select=Title,Owner/EMail,Responsible/EMail,Manager/EMail&$expand=Owner,Responsible,Manager
 
 
 
Once I retrieve the lists that has either of the column, next I need to check if that column has the value of varOldStaff.
If it does, retrieve and send the lists in email.
 
Appreciate everyones help.
 
Thanks.
  • AgxNick Profile Picture
    58 on at
    Retrieve all SP lists based on column with value
    I've been switching Get Items and http request doing different approach and formulas but result still the same.
     
    here is the formula of my previous Get Items. Column Owner exists on that list but got error because Managing Director does not.
     
  • TomMoody Profile Picture
    113 on at
    Retrieve all SP lists based on column with value
    Can I ask why you are using retrieve column HTTP request instead of the 'Get Items' step with 'limit column by view'
     
    If you are doing a custom HTTP request there is a lot more scope for error which makes this harder to diagnose, can you test with OOTB actions first to help diagnose the error?

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492