Is it possible to copy comments and suggestions when copying a Google Doc using Drive API?

11,579

Unfortunately it's not possible to copy a Google Docs file with comments and suggestions

  • As for comments, you can copy-paste them manually like done here.

  • However, suggestions are different from comments (at least as the Google APIs go) - see here for information.

  • In order to retrieve suggestions, you can use the documents.get method

  • Yet, inserting suggestions programmatically is currently not possible - see here for more details

Share:
11,579

Related videos on Youtube

murtaza64
Author by

murtaza64

I am a 13 year old developer. I like JavaScript and CSS.

Updated on June 04, 2022

Comments

  • murtaza64
    murtaza64 almost 2 years

    I noticed that comments and suggestions are not by default copied when using drive.files.copy. This is imperative to my project, so I did some googling and it seems like this feature may not even exist? I thought about copying and applying the comments manually using the Docs API, but I can't seem to find anything helpful about this on SO or the Google API documentation for Drive and Docs. Does anyone know if this is possible and how to do this?

    Thanks

    edit: the comments.list method returns comments, but not suggestions. I think I would be able to insert these comments manually into the copied document. What about suggestions? Is there a way to retrieve these?

    It would be really nice if I could easily copy both without a lot of leg work.