Skip to main content

Question 1:

How can I filter specific documents from a list retrieved by folder path using Document IDs?

I’ve successfully listed all documents by folder path (e.g., from SpringCM or a similar document management system). Now, I need to filter only a few documents from this list using their DocumentIds. What’s the best way to achieve this efficiently—should I filter after fetching all, or is there a way to apply the DocumentId filter while retrieving?

 

Question 2:

How can I attach a generated document to a Salesforce record using the Attachment object?

I have a document generated in Springcm workflow , and I want to save it to the Attachment object. I’m trying to set the content in Attachment.Body, but I’m not sure about the correct way to handle the content format (e.g. Blob) and associate it with a record (ParentId). Could anyone share a working example or best practices?

Be the first to reply!

Reply