I am trying to create a flow that runs when a number of pdf's are added to a file in one drive, then passes the pdf's through an AI agent, and then depending on if the AI has outputed any data, paste that info into a table. If the AI dosent output any data, it should add the name of the file into another table.
The problem i am having is that the condition i have made after the Process Documents (see picture) seems like it is treating all of the document that have gone through the AI as a whole, and hence isnt inputing data into the correct tables based on the returned value of each individual PDF.
I have made a dummy excel sheet as an example, i want the flow to recognise that the AI has returned no data for coloum 1, and instead of filling in the rest of the coloums, it should put the name of the file into Table 2, and it should do it for each individual document. (each individual document is pasted on a new row).
Currently, I am getting what is shown in the dummy excel sheet, and even though specified in the condition it is still putting data into the wrong table.
Also i have tried using an 'apply to each function' after the workflow action, however as the file dosent conatin the documents as they havent been uploaded there is no dynamic content to enter into the 'apply to each function'.
Has anyone got any solutions / tips ?