Good morning,
After frequently visiting this forum, I decided it was time to join. This is my first post, so please bear with me.
To provide some context, I have a workflow that involves an Excel Online file table. This table contains a series of file paths where we store our invoices. Each file path is processed within an "Apply to each" loop. This is followed by a "Get files (properties only)" step. If the output from this action is not empty (i.e., the length of the outputs is not equal to zero), it indicates the folder contains files (not all folders will have files at all times). In this case, "Get file content" is executed to check for files in the folder, and results are appended to an array variable (to account for multiple files per folder path). Finally, the files are gathered and attached for approval.
The approval process itself works as intended. For instance, if there are three folders—out of a total of 24—that each contain one file, the system will create three separate approvals. However, the issue arises with the file attachment process in approvals. Instead of attaching files from each folder to their respective approvals, the system creates three approvals: one with a single file attached, another with two files attached from separate folders, and a third with all files from each folder. The expected behavior is to create a separate approval for each folder that contains files, with all files in a given folder attached to its specific approval.
Thanks in advance!
Pics Posted Below.


Report
All responses (
Answers (