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

Error #51

Open
richardvandelft opened this issue Mar 24, 2020 · 1 comment
Open

Error #51

richardvandelft opened this issue Mar 24, 2020 · 1 comment

Comments

@richardvandelft
Copy link

When I use the New V8 JavaScript runtime in AppsScript I get the error
TypeError: CardService.newAction(...).setFunctionName(...).setLoadIndicator(...).setPersistValues is not a function [line: 281, function: buildSearchCard_, file: Code]

When I use the legacy runtime I get the error:
TypeError: Cannot find function setPersistValues in object Action. [line: 278, function: buildSearchCard_, file: Code]

If I remove this function (setPersistValues). Everything works fine.

@dwberry
Copy link

dwberry commented May 4, 2020

Had the same issue on the TeamList Gsuite Add-On Sample.
remove line 281
` var onSubmitAction = CardService.newAction()

.setFunctionName("onSearch")

.setLoadIndicator(CardService.LoadIndicator.SPINNER)

// .setPersistValues(true)

;`

Also I had to turn Off/On the Admin Directory API under "Advanced Google Services"

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