Hi, I have built a flow for applying for exams. It works as follows:
- Student scans QR and fills out a Forms
- In the case of a 1st or 2nd attempt, the teacher approves the request
- In the event of a 3rd attempt, the application must also go through other actors (Examination Committee)
- The flow contains reminders and confirmation emails
- The application is written into an Excel file with which the exam agency schedules the exams.
During a test with students and teachers, it turned out that students could easily apply for an exam for the second time. The Forms is used for many exams and must therefore be completed more often.
I came up with the following solution:
I compare the data from the Forms with the data already saved in the Excel file. I want to check whether the application meets 3 conditions: Student number (already filtered), the attempt (1st, 2nd or 3rd attempt) and the name of the exam. If all conditions are true, the outcome must be False. If one of the results is False in the “For each” action, the request should be automatically rejected. An email will follow with an explanation about the rejection of the application.

- The excel is read with “List rows present in a table”. The filter is the student number. In this case there are 2 rows that are returned.

- “Initialize variable” creates an Array where these variables are collected from Excel

- In the “For each”, the Condition action checks each returned line from Excel to see whether both conditions are met.

“Outputs” is a Compose action to collect all exam names in one string (always only one exam name is returned)
- Each outcome is added to the “VarOutputCheckExcel” with “Append to array”

- With the action “Check for duplicate requests” there must be no outcome of “For each” False to continue the flow.

What's going wrong?
It seems that only the first variable (Attempt) is considered. If it is different from what is already in Excel, the flow continues. If the “attempt” is the same, but a different exam, then False is also returned.
Now I have tried to check the checkboxes in Condition 3, but they remain unchecked when I save the flow. Copilot indicates that in that case there is an error in the flow. The question now is: where is the mistake?