Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Access SharePoint's Item Child Count from within PowerApps

(0) ShareShare
ReportReport
Posted on by 235

How can I access the "Item Child Count" column from a Sharepoint list from within PowerApps.

I am writing an app that provides a link in a gallery to another directory that is related to the gallery record.  The problem is there is nothing in the gallery that indicates whether the user has uploaded files to that directory, so rather than provide a link to an empty directory, I'd prefer to just display a message of "No Attachments" otherwise, if there is data, provide a link.

 

I can't think of a way to do this without examining the Item Child Count for the directory, something like

If (gallery.'Item Child Count' < 1, "No Attachments", Link)  except I can't access Item Child Count when creating the collection that is the datasource for the gallery.

Using a sharepoint connector to access the directory.

I've seen some examples out there using power automate but I really don't want to go there if possible.  Also, could a component be used to do something like this?  Some kind of stand-alone component that could accept a URL to a sharepoint directory and return Item Child Count (or other such columns)?

 

Any and all help and suggestions are appreciated... so brainstorming is encouraged!!

Thanks

 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard