add-ons-samples icon indicating copy to clipboard operation
add-ons-samples copied to clipboard

Error

Open richardvandelft opened this issue 4 years ago • 1 comments

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.

richardvandelft avatar Mar 24 '20 20:03 richardvandelft

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"

dwberry avatar May 04 '20 02:05 dwberry