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 Apps
Answered

Concat Max length

(0) ShareShare
ReportReport
Posted on by 4,650 Moderator

Hi all,

 

Has anyone had any experience using Concat to get an extra long string of filenames from a SharePoint Document Library? I'm wanting to use this process to check if a filename exists in the Library before saving via PowerApps.

 

My code:

// Boolean test to check if filename exists
Label10.Text in Concat(
 ForAll(
 myLibraryName,
 {FileName: ThisRecord.Name}
 ),
 FileName & ","
)

 

Wrapping my ForAll() in Len() shows there are ~4400 characters from 82 filenames, currently in the Library. Future plans could see this DocLib expand and I'm wondering if I should be doing this differently for longevity?

 

Any input welcome.

 

Thanks

 

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,750 Most Valuable Professional on at

    Hi @EddieE ,

    Consider storing your file name in a Text field with a Flow when it is first created (I do that on a large Library I have and call it NameFile)

    IsBlank(
     LookUp(
     myLibraryName,
     NameFile = Label10.Text
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Verified answer
    EddieE Profile Picture
    4,650 Moderator on at

    @WarrenBelz 

    Thanks for the reply mate - haven't you retired haha 😛

    I did some further testing on a library I had access to with a large number of files, findings were

     

    - the ForAll() peaked out at 2,000 records - this was expected

    - the Concat() on those 2,000 records got up to ~50,000 characters returned

     

    I suspect that Concat() could go further than that - not sure really. 

     

    I will take your suggestion onboard and keep it in my back pocket for when/if this library expands beyond 2k records - seems my ForAll() should be good for now, and possibly for the life of this app 🙂

     

    Cheers again mate!

     

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 Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard