从谷歌应用脚​​本中的脚本获取文档属性

时间:2015-09-29 12:02:25

标签: properties google-apps-script google-apps

我有一个插件,用于在Google文档中存储属性。 我开发了这个插件,我使用了PropertiesService.getDocumentProperties()

现在我写了一个独立的谷歌应用程序脚本,需要迭代特定文件夹中的每个文档,并为每个文档获取存储的属性。

我尝试使用相同的PropertiesService.getDocumentProperties().getProperties()函数,但似乎PropertiesService.getDocumentProperties()正在返回 NULL

var documentProperties =  PropertiesService.getDocumentProperties().getProperties();

是否可以从独立的谷歌应用脚​​本中调用它?如何设置活动文档?

否则,我怎样才能获得我存储在每个不同文档中的所有属性?

0 个答案:

没有答案
相关问题