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 Apps / Accessing Elements of ...
Power Apps
Answered

Accessing Elements of a Collection Created from Split

(0) ShareShare
ReportReport
Posted on by 51

I am creating a collection using Split, like this:

 

ClearCollect(coll,Split(String,"|"));

 

Then I want to loop through the collection and reference each value in the collection.  My understanding is that Split creates a simple array and the values in the collection are accessed using the Value key.

 

However, I get an error on the use of "Value" in ForAll():


ForAll(coll,
Collect(collCopy,{V: Value, Index: CountRows(collCopy)})
);

 

If I change my original ClearCollect to use a simple array from the start rather than Split():

 

ClearCollect(coll,["abc","def"]);

 

Then using "Value" in ForAll() is accepted.

 

How can I access the values in the collection created from Split()

Categories:
I have the same question (0)
  • Verified answer
    Sunil-Narnaware Profile Picture
    681 on at

    @msalamonjl use Result instead of Value 

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 Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard