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 base64 string data (Attach file has stored in Attachment Object) #
Pre-require #
-Create Metadata provider and repository for the upload message type
-Connection destination and create an adapter
-Create Integration and Inbound Interface
Step1: #
We need to have a Repository to upload structure for do mapping. How to create a MetaData provider, repository, and upload the message type we can refer to the following guide https://docs.skyvva-dev.com/docs/skyvva-administration-guide-v2-41-lightning/repository/ for metadata provider.
-Choosing file type to upload and click Button save. that means we create Message Types.
-Scroll down to see Message Types.
Step 2:
#
We go to the Agent control board (old) to connect the destination. How to use the Agent control board (old). (Please refer https://docs.skyvva-dev.com/docs/tutorial-v2-41-lightning/how-to-use-agent-control-board/ ).
-Connection Destination in Agent Control board
Step3: #
Create an Adapter in Agent control board (old), We need the Adapter to transfer the data from one System to another system or computers. Here’s an example below.
-Go to Adapter on Agent Control Board (old).-Click the New Button to create an Adapter.
-After that, fill in the name, type, direction, status, properties, and click the button save. Follow the example below.
Step4: #
We need an inbound Interface for import data to Salesforce.
-Create Integration and Inbound Interface with Message Types that we had uploaded.
-Put an adapter, MetaData Provider, Repository, Message Type, and click button save.-We do mapping, which is a collection of key-value pairs where each unique key maps to a single value. (Please refer https://docs.skyvva-dev.com/docs/tutorial-v2-41-lightning/how-to-use-mapping/).
• The example of mapping in the below is about How to import Binary data into ObjectAttachment in Salesforce.-After that, go to the Agent control board (old) =>Select Integration.
-Select the Interface tap, choose the interface, and click the Button PROCESS INTERFACE.
-It will alert to go to monitor for checking results.
-Click the Button search to see the result.
• Here are two Accounts that import to Salesforce #
Summary #
Finally, we have learned about How to import Base 64 string data to ObjectAttachment in Salesforce. There are 4 steps to import Binary data to ObjectAttachment in Salesforce such as upload structure for getting Message Types, Connection Destination, Create adapter, and create an inbound interface for mapping. So this function is helpful for User who wants to import binary data to ObjectAttachment in Salesforce. On the next page, we will learn How to import Binary Data to ConetentVersion in Salesforce. Here is a document about import binary data to Conetentversion in Salesforce (Please refer https://docs.skyvva-dev.com/docs/tutorial-v2-41-lightning/81-how-to-import-binary-data-base64string-to-object-contentversion-with-agent-control-board-old/).