You need to sign in to do that
Don't have an account?
Intigration v
SOQL Query to filter with Contentdocument title on ContentdocumentLink object
Hi,
I have a requirement to get the files attached with specific title,am trying to filter the records with below query but it is giving me zero results.
There is already two files attached to my Lead record with the title "Customer reviwed".But it is giving me zero results when am applying filter with title.
Please can anyone helpme how can i query the title from contentdocumentLink object.
SELECT ContentDocumentId,contentdocument.title FROM ContentDocumentLink WHERE LinkedEntityId =:LeadId AND contentdocument.title='%Customer%'
Thank you!
I have a requirement to get the files attached with specific title,am trying to filter the records with below query but it is giving me zero results.
There is already two files attached to my Lead record with the title "Customer reviwed".But it is giving me zero results when am applying filter with title.
Please can anyone helpme how can i query the title from contentdocumentLink object.
SELECT ContentDocumentId,contentdocument.title FROM ContentDocumentLink WHERE LinkedEntityId =:LeadId AND contentdocument.title='%Customer%'
Thank you!
I dont want all the documents attached to the Lead record,i want only files with specific title.The above query you shared is giving all the files attached .
Thank you!
I found the mistake i did here,below query worked for me.
SELECT ContentDocumentId,contentdocument.title FROM ContentDocumentLink WHERE LinkedEntityId =:LeadId AND contentdocument.title Like '%Customer%'