Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reexportFile() was added to make automation easier, but I can't get it to call from google scripts? #112

Open
gandrus opened this issue May 11, 2020 · 3 comments

Comments

@gandrus
Copy link

gandrus commented May 11, 2020

I can't find in the documentation anywhere how to call the reexportFile() function in google scripts.

no matter what I try, it gives me a 'not defined' error.

I've got the app installed in sheets - am I supposed to do something else in scripts to make it accessible?

@Synthoid
Copy link
Owner

I added the reexportFile() function as a stopgap to allow users to roll their own automation solution until I can get that implemented into ESD proper. I haven't dug into the subject too deeply, but you can find more information about these processes here.

I had assumed that external scripts would be able to call methods defined in ESD, but maybe that is not the case? One thing to note about the reexportFile() function is that you need to manually export JSON or XML to store the export settings before reexportFile() will function as expected.

@gandrus
Copy link
Author

gandrus commented May 17, 2020

Thanks for getting back to me!

I found a way around the issue by copy/pasting the entire code for the app into my google script, and then by hardcoding the export settings (that normally would have been passed on from the HTML page)

@Synthoid
Copy link
Owner

Haha, that seems about right. I may take a swing at getting automation support set up soon. I think I know how to present those controls visually, so all that remains is digging through documentation on setting up and deleting triggers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants