add-ons-samples
add-ons-samples copied to clipboard
Error
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.
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"