Using the SF documentation I have created a custom object with the FILES related list.

Using workbench I can successfully see that it receives a message when a new record on that new object is created.

I want to use an an ESB to transfer the new record and the files saved under it to an online cloud storage platfom (SF>ESB>OnlineCloudStorage)

How do I include the files under that record? so far I only have the fields in the PUSHTOPIC query.


The files will be associated to the record via a junction object called contentDocumentLink. You will need to query for the files by the linkedEntityId which is the recordId of your custom object record. You could do something like this:

[Select Id, ContentDocumentId from ContentDocumentLink where LinkedEntityId = : your_custom_record_Id];

  • So will this actually transfer the PDF files from Salesforce or will it just stream the object information across? – TheAdmin Oct 9 '18 at 8:01

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.