Hi community, I'm new to power automate and office script - I'm hoping you can help
I am writing an office script to create a table in excel. When testing it in power automate it fell over because there was already a table in the file. To get round this I would like to check if there is a table and if so convert it to a range.
Here is my script so far:
It works if there is an existing table but doesn't when there isn't one present.
I found this where it it says it is possible to verify if an object is present but I do not know where to place the ? operator.
Can you help please?