I have a workflow where I am importing the contents of a spreadsheet dropped into a given directory. I need to grab the data from the sheet and send it to a function that will do my transformation, but it seems in order for me to get the data from the spreadsheet into an array and then JSON object, I first need to read the rows from the spreadsheet... and to do that, it needs to be a table.
The problem is that there is no table to begin with, so I am checking if a table exists and if not, then creating a table. The problem is I can not have a Read Rows block if the Table doesn't already exists -- it's not letting me Save the flow. I found a solutions from some time ago using an office script to check if the table exists... but this is not something I can use.
Is there perhaps a better approach to this? The data getting imported from the spreadsheet is all over the place, so creating a table is not easy either because it's not clear how big the table even needs to be. Would it perhaps be easier to convert the Excel file to CSV and then maybe CSV to JSON? Any suggestions would be welcome