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.
Please let me know what is the replacement of getComment() method or what are the other ways to get comments from google sheet in my script program?
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:
So it is possible to grab all comments, just not which cells those comments are associated with.