• JBessonart
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I'm searching for the place in which the 'relatedTo' field lives. This field is what relates a google doc object with an sfdc object.

Can anyone know where is stored?

Thanks,

Juan.

(Sorry about my english, i'm not a native speaker)

I have a List of cases and I need to convert to a list of Contacts.

 

Here is the code I have:

 

List<Case> cases = [select Case.Contact.Id from Case where Survey_ID__c > '' and Survey_Sent_Date__c = null];
System.debug('Cases = ' + cases);

 

This is the resultset returned:
Cases = (Case:{Id=500700000077OqNAAU, ContactId=0033000000J6B9YAAV}, Case:{Id=500700000077YveAAE, ContactId=0033000000J6B9YAAV}, etc...

 

How can I convert to a List of Contacts?

 

I was trying:

 

List<Case> cases = [select Case.Contact.Id from Case where Survey_ID__c > '' and Survey_Sent_Date__c = null];

List<Contact> contacts = new List<Contact>();

for (Case c : cases) { Contact con = new Contact();

contacts.add(c.contactid);

}

 

But, I get Incompatible element type Id for collection of SOBJECT:Contact

Thanks for any help.

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?