Google apps script: how to persist data in spreadsheet between different function calls?

前端 未结 3 1907
渐次进展
渐次进展 2020-12-07 02:32

In a Google spreadsheet using the Script Editor, I do function calls, but I am not quite sure if the best way to store persistant data (data that I will continue to use) is

3条回答
  •  离开以前
    2020-12-07 03:01

    Persistent data can be stored using the Class ScriptProperties:

    http://code.google.com/googleapps/appsscript/class_scriptproperties.html

    All values are stored as a string and will have to be converted back with the likes or parsInt or parseFloat when they are retrieved.

    JSON objects can also be stored in this manner.

提交回复
热议问题