How to GetComments from google sheets

前端 未结 1 1626
情深已故
情深已故 2021-01-15 17:34

I want to get comments from google sheets based on cell range in my script program But found that range.getComment() method is deprecated and now returning notes only.

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-15 17:55

    Unfortunately, it looks like Google Apps Script can only retrieve the notes from a range:

    https://developers.google.com/apps-script/reference/spreadsheet/range#getNotes()

    There is no equivalent getComments() function.

    This is an issue that has been officially raised here: https://code.google.com/p/google-apps-script-issues/issues/detail?id=1818

    One of the developers has noted that:

    We are aware of the demand for this feature, but there is no work going on at the moment. As a partial solution, you can use the Drive Advanced Service to read all the comments and replied on a spreadsheet, but you aren't able to create new comments or determine to which cell a given comment is attached to.

    So it is possible to grab all comments, just not which cells those comments are associated with.

    0 讨论(0)
提交回复
热议问题