Assigned
Status Update
Comments
to...@smallpdf.com <to...@smallpdf.com> #2
There is a similar bug that was set to "Won't fix - works as expected", but skipped over the issue, that there is currently no way of getting ID of active document if it's in `.doc` or `.docx` format.
Link to the mentioned issue:https://issuetracker.google.com/issues/235693509
Link to the mentioned issue:
bl...@google.com <bl...@google.com> #3
Automated by Blunderbuss job workspace-devrel-public-issue-tracker-blunderbuss-autoassigner for component 555502.
jp...@google.com <jp...@google.com> #4
There seem to be two levels to this feature request:
- drive file id to the add-on/script
- blob of doc(x) file to add-on/script
The second step is important due to the drive.file
scope instead of using a restricted drive.readonly
or similar.
jp...@google.com <jp...@google.com> #5
I will also file a bug with the engineering team to improve the error message.
to...@smallpdf.com <to...@smallpdf.com> #6
Thank you for such a swift response! :)))
to...@smallpdf.com <to...@smallpdf.com> #7
to...@smallpdf.com <to...@smallpdf.com> #8
Hello! Any update for this bug/feature request?
da...@gmail.com <da...@gmail.com> #9
Any updates on this? I've also come across this 🙏
Description
Before opening a new issue, please search for other related issues , click the ★ to subscribe to updates, and click
+1
to vote.Description
Within our Google Workspace Add-on, we would like to access the currently opened document and send it for processing. For documents that are in google docs format we can call
const document = DocumentApp.getActiveDocument()
and later calldocument.getBlob()
to get a blob ordocument.getId()
to get document ID. This works fine for documents in google docs format. Unfortunately if a currently opened document is in Microsoft Word's.doc
or.docx
file format, thenDocumentApp.getActiveDocument()
fails with an error:Exception: The document is inaccessible. Please try again later.
.This means that we can not access file's blob with the same OAuth scopes. Neither can we access the currently opened document’s ID, which prevents us from downloading this file using any workaround, for example the drive's api
getFileById(id)
(which requires more permissive OAuth scopes).Code
Output
Steps
.doc
or.docx
DocumentApp.getActiveDocument()
Exception: The document is inaccessible. Please try again later.
is being thrown