-
Notifications
You must be signed in to change notification settings - Fork 431
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
There is no apparent method to deploy ScriptProperties #569
Comments
I think you mean https://developers.google.com/apps-script/reference/properties/script-properties
Maybe you can use |
As Grant mentioned, it isn't feasible to build this given the limitations of the Apps Script API that clasp uses. You could add a helper function to your script like: function setProperties(properties) {
PropertiesService.getScriptProperties.setProperties(properties, false);
} And then call clasp run 'setProperties' '[{"foo": "bar"}]' I don't think it makes sense to build this into clasp however, so closing this issue as not feasible. |
that should be sufficient. Thanks! |
Looks like clasp run can't be used with scripts that are attached to google forms, as running them gives me
And trying to click "Publish as executable API" give me an error popup of "Can not retrieve script execution endpoint information" (I am translating from Japanese, no clue how to switch back to English) oh well... |
This is brilliant! |
@junderw - There should be no problem publishing a form-bound script as an executable, and I just tested it myself. Maybe it was a transient error? Perhaps check to make sure there is nothing strange in your manifest? |
Do you have a document on how to do this? Manifest file? (This is my GAS deployment knowledge level) |
This is the documentation on how to setup the execution API: https://developers.google.com/apps-script/api/how-tos/execute I'm not sure what problem you are running into, so hard to advise, other than say hack around and try different things. |
Expected Behavior
There should be a way to push / pull ScriptProperties from the Script.
Actual Behavior
There is no obvious way to do this besides opening it in the browser editor and doing File > Project Properties
Steps to Reproduce the Problem
Specifications
node -v
): v10.15.0clasp -v
): 2.0.1The text was updated successfully, but these errors were encountered: