You need to sign in to do that
Don't have an account?
Copy Document to Notes and Attachments on Objects Using Document Id
I have a custom object that represents a document, and contains the document Id. I'd like to use that document Id and add that document to the notes and attachments section of that object. Any help in the right direction would be appreciated.
document.body is a blob, so you might have to do something like
blob dblob = d.body;
then assign that dblob to the attachment.body.
Not sure that might give you somewhere to start.