Hi,
I have a flow that from powerapps gets a collection of filenames of files that in principle exist in a sharepoint document library.
Primary this flow needs to use these files as attachments in an email.
I do this by using steps
-V2 powerapps connector
-Initialize array variable
-parse json from powerapps
-apply to each
-get files (properties only)
-condition:
length(outputs('Get_files_(properties_only)')?['body/value'])>0
-get file content using path
-append to array
-send email (using array for attachments)
The condition step is important, without it the whole flow fails if one filename is invalid.
It all works fine, but now I would like to have the flow return the invalid filenames to powerapps.
I thought it would be simple, just initialize another array and append filenames to that if the condition step returns false
If I test the flow using 2 filenames, one valid and one invalid, a mail is send with the valid file but the "false" branch is never used as
"The execution of template action 'For_each' skipped: the branching condition for this action is not satisfied."
How can this be? The condition is either true or false.