function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Apex Google Doc Attachment

Given a contract I can get a list of attached Notes and Attachments using the following queries:

[SELECT Id, Name FROM Attachment WHERE ParentId=:contract.Id]
[SELECT Id, Title FROM Note WHERE ParentId=:contract.Id]

I combed through the schema and api documentation and I've been unable to find a way to retrieve a list of attached Google Docs.

Any Idea's?

I'm trying to do the same thing. There seems to be a relatedTo field and is not being exposed.
I've been able to find a way to retrieve a list of attached Google Docs, but i can't filter by the parent object....


Juan, how were you able to retrieve a list of attached Google Docs?


This still appears to be an unsupported feature.


Finally figured this out: you have to contact support to have API Access to the GoogleDoc object enabled for a given org.


I've posted more details over on Salesforce StackExchange:

API Access to GoogleDoc Attachments




Zach McElrath