Azure Logic应用程序:检索blob身体以获取Salesforce附件记录
我正在尝试提取Salesforce中附件的BLOB内容,并将其保存在Azure Blob存储中,并在Azure Logic应用中使用Salesforce连接器。
到目前为止,我正在做以下... (1)使用“执行查询”连接器获取具有附件的对象的ID (2)使用“执行查询”连接器使用上面的父对象的ID获取附件的ID (3)使用“通过外部ID获取记录”使用上面获得的ID获取附件对象,
使我获得了“正文”属性'/services/data/data/v20.0/sobjects/attachments/attachment/001z00000000000000zzzzz/body',但我可以t找到我可以使用此主体检索内容的任何连接器。
是否有人成功地使用Azure Logic应用程序中的连接器从Salesforce中检索Blob内容?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过反复试验后,我认为无法使用Azure Logic应用程序中的Salesforce连接器来执行此操作。我能够使用Salesforce Nuget软件包在C#中编写Azure功能并使用方法GetBlobAsync来获得附件。
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.