You need to sign in to do that
Don't have an account?
Roopa S 1
i need to write SOQL query
i need to retrieve all case records that are added 50 days before(last created case should be display first) and case origin should be email. How to write query for this?
The following links should be helpful to understand how to get a query for the files from the document object:
http://developer.force.com/cookbook/recipe/retrieving-email-attachments-and-associating-them-with-records
Also, refer:
http://salesforce.stackexchange.com/questions/11841/is-there-a-superclass-for-document-and-attachment
http://salesforceapexcodecorner.blogspot.sg/2011/09/attach-document-in-attachment-object.html
Hope this helps.