I have built a Screen Flow which has an upload file component, which I have limited to one file per Flow process.
The output of this component is called "Content Document IDs" and required to be stored in a Text Collection Variable, which effectively is an Array of the uploaded file Id's.
The problem is that although the collection variable is only returning one Id, I cannot access it, as it returns the value as an array - [xxxxxxxxxxxxxx]
UPDATE: As the formula is returning the ID as an Array - [xxxxxxxxxxx] I have removed the brackets, leaving just the Id...
SUBSTITUTE(SUBSTITUTE({!DocumentIds},'[',''),']','')
Is this the only way to do this? It seems a bit fiddly??