Hello community! I'm stuck on a formula that should be easy but I've a feeling I'm missing something obvious.
I have a collection - Attachment Collection. I want to split the DisplayName of each attachment and add the result as a Value to an existing collection. This is the AttachmentCollection

I want to split the AttachmentCollection Displayname on "^" and get the value before this delimiter and add it to a second collection:

I've tried versions of a formula to do this but both throw errors. I suspect my syntax is off...Also, I think this would return "Result" when I need it to be "Value" as in the above collection.
Collect(colUploadMateriasTable,
ForAll
(First(Split(AttachmentCollection.DisplayName,
"^"
), {Result: ThisRecord.Value})
).Result);
Collect(colUploadMateriasTable,
First(
ForAll(Split(AttachmentCollection.DisplayName,
"^"
), {Result: ThisRecord.Value})
).Result)
I have this formula on the OnVisible property of my screen where the attachment control is in a form.

Alternatively, I've also tried StartsWith in my formula for a checkmark icon because I am using the collection to compare with a label value in my gallery. If there is a match, the checkmark should display as below.



Thank you in advance for anyone's assistance!
@kky1