function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
SELECT ContentDocument.FileType FROM ContentDocumentLink WHERE LinkedEntityId = :currentRecordID
<pre>SELECT Id,Name FROM Attachments where ParentId ='id of the record for you want to query related attachments for' AND WHERE ContentType IN ('image/bmp', 'image/gif', 'image/jpeg', ...)</pre>
Thanks,
Allways Cool
Have you resolved it? I have the same requirment.