Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive File resource does not return exportLinks for google form, google map #19919

Open
sonam-serchan opened this issue Mar 5, 2024 · 1 comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.

Comments

@sonam-serchan
Copy link

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please include as much information as possible:

Environment details

  1. Specify the API at the beginning of the title. For example, "BigQuery: ...").
    General, Core, and Other are also allowed as types
  2. OS type and version: Mac OS Sonoma 14.3.1 (23D60)
  3. Java version: 17
  4. version(s):

Steps to reproduce

  1. Use file resource to get the available export links for exporting the google workspace documents such as google docs, slides, form, map etc.
  2. Export link if null for google form and map.

Code example

return drive.files().get(id).setFields("*").setQuotaUser(GoogleDriveUtil.getUserString()).setSupportsAllDrives(true).execute();

Stack trace

No just exportLink is not returned in File response.

External references such as API reference guides

Screenshot 2024-03-06 at 10 25 46

Any additional information below

I am trying to export the google workspace documents. For this, I use export link from files resource to get the available download link for the document type. I can get for documents such as google doc, slide, spreadsheet etc. However, for google form, google map, I don't get the export links. Thus, cannot export the documents.

Following these steps guarantees the quickest resolution possible.

Thanks!

@zhumin8 zhumin8 added type: question Request for information or clarification. Not an issue. q3 priority: p3 Desirable enhancement or fix. May not be included in next release. and removed q3 labels Mar 13, 2024
@zhumin8
Copy link

zhumin8 commented Mar 13, 2024

This sounds more of a "Drive API" question than a "Java client libraries" question. Note that the maintainers of this repository don't have detailed knowledge of the APIs itself. You might consider reaching out through Drive API's support channels instead.

With simple search, these looks likely limitations of Drive API.
For Google Maps, there is a related feature request open here.
For Google Forms, found some helpful links that might help with exporting to zip format:
https://stackoverflow.com/a/65525145
https://developers.google.com/drive/api/guides/ref-export-formats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants