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:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard