简体   繁体   中英

Azure Logic Apps: Retrieving Blob Body for a Salesforce Attachment Record

I'm trying to extract the BLOB content of an attachment in Salesforce and save it in my Azure BLOB storage with the Salesforce connector in Azure Logic Apps.

So far I'm doing the following... (1) Use 'Execute Query' connector to get the Id of the object that has the attachment (2) Use 'Execute Query' connector to get the Id of the attachment using the Id of the parent object above (3) Use 'Get Record by External ID' to get the attachment object using it's ID obtained above

This gets me the 'Body' attribute '/services/data/v20.0/sobjects/Attachment/001Z000000ZZzZz/body' but I can't find any connectors that I can use to retrieve the content using this body.

Has anyone had success retrieving BLOB content from Salesforce using the connectors in Azure Logic Apps?

After trial and error I don't think it's possible to do this with the salesforce connectors in an Azure Logic App. I was able to get the attachment by writing an Azure Function in C# using the salesforce nuget package and using the method GetBlobAsync.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM