1

I am trying to query all the attachments on parent object from child record where attachment name contains child record name

Can any one help me on this

2

Try this, SELECT Id, Name FROM Attachment WHERE Parent_Object__c = :ParentrecordId AND Name LIKE '%childrecordname%'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.