Status Update
Comments
co...@google.com <co...@google.com>
pa...@section6.nz <pa...@section6.nz> #2
The flow of the wizard is really meant for the key to be used for signing. In fact, if you want to just create a key for code transparency you have to start a flow (signing an APK/Bundle) and then back out of it/cancel after you created the key.
To properly support this, we should also allow you to start a wizard that is just creating a key, and nothing else.
co...@google.com <co...@google.com> #3
pa...@section6.nz <pa...@section6.nz> #4
Your answer fails to acknowledge that DocumentsApp and SlidesApp behave one way and SpreadsheetApp another. One of the ways must be "wrong".
The DriveApp, as you note, works with the target file types. But through the Editor add-on API, there is no way to know the active document (unless it's a spreadsheet via SpreadsheetApp). So it does not follow that DriveApp is a solution in this case—what id do we pass to DriveApp.getFileByID(?).
Not to mention that an exception that says "...try again later" is also just WRONG. Unless "later" means when this bug is resolved.
Thank you.
co...@google.com <co...@google.com> #5
Hi,
The documentation states that only Google Products are supported. The fact that excel spreadsheets are supported is an edge case and it is not encouraged.
DriveApp.getFileById() will let you fetch any file stored in Google Drive, which you can then manipulate as you see fit (and easily convert into Google Products if needed).
As this is working as intended, I will be closing this case.
Thanks!
pa...@section6.nz <pa...@section6.nz> #6
Hi
I am really disappointed that you did not take the time to understand this issue correctly.
Again, DrivApp.getFileById
is not available to use in this case—the ID is not provided to that function in the event JSON information. Nor is it available through any of the other APIs in this context (especially because DocumentApp.getActiveDocument()
fails). So there is no workaround in the case you want to work with a non-google doc in an Editor Add-On.
The ID is available and is passed in the event JSON of onItemsSelectedTrigger
. Here, DriveApp.getFileByID is useful.
If your position is that this is not supported, then I will accept that. But please do not tell me to use a solution that is simply not valid. It does you no credit and diminishes my request for support.
thank you
Description
A short description of the issue:
In a Document (Docs) Google Workspace Editor Add-On
Throws the following error when the active document is a non-google Doc. Specifically, a Microsoft Word document or .docx.
What steps will reproduce the problem?
What is the expected output? What do you see instead? If you see error messages, please provide them.
I appreciate that the functionality of what can be done with a word document is limited. However, everything my add-on wants to do still works with a .docx. if I could only get its document id. (I tested it with a hard-coded copy of the .docx. id).
But there is nowhere in the interface to get the ID. It is not present in the event and obviously not from the API call.
Thank you.