christwr
7 years agoContributor III
Salesforce SnapPack with "Content" as opposed to "Attachments"?
I’ve written pipelines to pull binary documents from Salesforce stored as Attachments using the “Attachment Download” snap from the Salesforce SnapPack. But I have a new project where similar binary documents are being stored as ContentVersion in Salesforce. When I query the ContentVersion table, the “document” (supposedly in the VersionData field) seems to be another API link:
“VersionData”: “/services/data/v34.0/sobjects/ContentVersion/068180000XXXXXIoAAO/VersionData”
I assume that API path would probably return the binary document, bit not sure how to dynamically call that API using the Salesforce SnapPack account and snaps. Make sense? Any thoughts?