Activity Forums Salesforce® Discussions Is there any way to check attachments on an object through code in Salesforce?

  • Kumar

    Member
    February 13, 2017 at 7:26 am

    Hi Pranav,

    You can query for the attachment with the parentId as the Id of the object record. For example:

    SELECT Id FROM Attachment WHERE parentID = <your record's Id>

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos