Hi,
I've created a flow which does the following :
In an Excel Template (Credit Note), it performs a run script to complete some header and footer data in the template, I then run an Add Rows to Excel Table to generate the line detail in the template. The file is then saved out to another file using the appropriate sharepoint commands (File Content, Create File etc) and then I remove the data by passing nulls through in the same run script command and delete the line detail from the excel table using delete rows, so that I have an empty template file for the next time this process is run.
The problems I have :
The flow runs, it performs the Run Script command and creates the header and footer data correctly, however, it does not generate the line data in the table when the Add Rows to Table command runs (it runs with a successful outcome according to the run progress), the second iteration of Run Script runs with a successful outcome but only passes nulls into the cells before the data table, the remove data from excel data process fails because of the blank row in the table.
Has anyone successfully used both Run Script and Add Row to Table in the same flow, or do I need to run 2 separate flows to do this and call the second flow from the first one (and probably a third and fourth to remove the data?). Does anyone know why blank line is persistent in the Excel table, which then causes the issue with the removal process?
Sorry for the long-winded post, thanks for persevering!!