Google Drive SDK docid changed - How to relate documents stored by old docid to the new one?

谁说胖子不能爱 提交于 2019-12-13 00:13:59

问题


It appear that the docid's changed for all google drive documents on our google apps domain...

  • Will it change again?
  • Why was it changed? (my google/yahoo/bing searches on this subject turn up nothing useful - is no one else experiencing this? For me it seems to have happened at around Jan 16/17th)

And most importantly for now:

  • Is there a way to cross-reference all of the old docid's to the corresponding new docid's?

回答1:


Found out some more info. The root cause is a migration from the old presentation editor to the new one. The new editor has been the default for a while, but to complete switch over all the older presentations needed to be converted. For various technical reasons, it wasn't possible to do this without creating new file entries for each presentation. This happened once before about 6 months ago when the same thing was done for documents.

It is possible remap the IDs by checking the change feed. The delete & create will appear as separate events, but if you look for deletes followed by a create of a file with the same title you can build up a mapping of the file IDs. Not entirely foolproof, but its a one time operation.

So turns out IDs aren't quite as immutable as made out to be...



来源:https://stackoverflow.com/questions/14461575/google-drive-sdk-docid-changed-how-to-relate-documents-stored-by-old-docid-to

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