I'm looking to set the "Description" field on the attachment record when attaching a document to the Salesforce record it is run off of.
My use case is a pdf that I am attaching to an Opportunity. I'd like to have the description of the attachment set to "Proposal" so that I can use a filter to differentiate it form other attachments on the opportunity.
I tried that when I attempted to set this up but the challenge is that the 'Description' field is on the Attachment object not the Opportunity
When you attach a pdf what actually happens is that an Attachment record is created as a child of the parent record and the PDF is stored on that Attachment record. So in my use case, I cannot get the Insert Update to actually find that attachment child record to update it, it only seems to be able to reference the Opportunity.
Any tips on referencing the attachment record?