Is there a way to show the sheet has been updated remotely via the API?

帅比萌擦擦* 提交于 2020-02-08 10:24:15

问题


When Smartsheet is updated by another used using the GUI, another user viewing the sheet will get visual notification that the sheet has been updated - requiring a save and/or refresh.

Is there a way to trigger this functionality from the API. I'm using the Python SDK 2.0 and Python 3.5

Thanks.

Craig


回答1:


The sheet version is incremented every time the sheet changes. You can use get_sheet_version(sheet_id) to get a baseline version, then check again to see if it has changed. This is a very lightweight call.

Alternatively, the native Smartsheet REST API supports Webhooks to provide a callback when a sheet is changed. But this requires that you have a web server running and isn't wrapped by the Python SDK.




回答2:


The GUI indicator will eventually alert you to a change regardless of where the update came from. Sometimes, that change can be a little delayed in the UI itself though.



来源:https://stackoverflow.com/questions/41538435/is-there-a-way-to-show-the-sheet-has-been-updated-remotely-via-the-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!