CSV Download Trigger
CSV Download Trigger

I am looking for a solution where I can run a script on button click/trigger.
Depending on the response of the function I want to continue with the CSV download or exit.
I am struggling to find a manual call for downloading the csv that doesn't involve triggering the button.
Does a trigger like this exist?
Much appreciated.
This discussion has been closed.
Answers
You'll want a custom button in the first instance, then use the
buttons.buttons.action
callback to trigger the original CSV export. The final example on that page's documentation show how that can be done.Allan
Ah I see the issue, as this definition doesn't exist within DefinitelyTyped.
Forgot to mention that.
It is in our own typing file which is relatively new.
Allan