问题
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