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 / Retrieve all SP lists ...
Power Automate
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.
Categories:
I have the same question (0)
  • TomMoody Profile Picture
    115 on at
    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?
  • AgxNick Profile Picture
    58 on at
    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.
     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard