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 / 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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard