cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
msalamonjl
Helper I
Helper I

Accessing Elements of a Collection Created from Split

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()

1 ACCEPTED SOLUTION

Accepted Solutions
Sunil-Narnaware
Solution Supplier
Solution Supplier

@msalamonjl use Result instead of Value 

View solution in original post

1 REPLY 1
Sunil-Narnaware
Solution Supplier
Solution Supplier

@msalamonjl use Result instead of Value 

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (5,142)