Hi @AT_M ,
Apologize for the late response and sorry to hear your flow didn't work. Were you able to make your script work with Power Automate later?
Regarding clearing a table, did you mean to remove the table all together? You can probably try something like workbook.getTable("Table1").delete().
Hope this helps. Please let us know if you have any further questions.
Thanks!
Yutao