SK SKYVVA Documentation

117. How user can import business and attachments that are embedded in one file (Account)?

Introduction

Base 64 String is a group of binary-to-text encoding schemes representing binary data in an ASCII string format by translating into a radix-64 representation. The term Base64 originates from a specific MIME content transfer encoding. To help customers who want to import SObject and attach a file (base64), we have methods that can solve the problem. Now I would like to show you how to push binary data and SObject in the same XML file, but it will store the attachment in Attachment Object. The binary data is the data that has encoded with base64 string.

How to import business and Attachments that are embedded Account

Pre-require

To import SObject and attach a file (base64) to it. The SObject and the file are embedded in the same XML file. See in the picture below.

So to be able to integrate hierarchical data like that, we need to use IntegrateV3 inbound processing. We have to push a file to Attachment and pushing the file to Attachment SObject. [su_box title="Note" box_color="#2a8af0" title_color="#000000"]The file is base64 (binary text) not a physic file.[/su_box]

Now we need to choose the Target SObject to push the file to Attachment SObject based on the mapping. Let’s open the Mapping tool and see how we map in the picture below. Pushing file to Attachment

Before you are able to connect to the Agent side you need to set up the remote site on Salesforce by going to Setup and search for remote site setting and then create a remote site.

Now let’s configure the Agent server and click Ping Agent Connection. See in the picture.

Summary In this tutorial user learns how to import business and attachments that are embedded in one file (Account).

Open this article in the interactive viewer →