Introduction #
As we already learn about how to import base 64 data to Salesforce. Now we will learn about How to import attachment to Account’ business by using ContentVersion. Sometimes, the user wants to import only attachments to the Account business. SKYVVA has a limitation which can push file (Base64) around 1.6MB per transition. So if the user wants to import many files to Account, we need to use vlookup function to find Account.
How to use import Attachment to Account by using ContentVersion? #
Pre-require #
-Create MetaData provider and repository for the upload message type
-Connection destination and create an adapter
-Create Integration and Inbound Interface
Configuration of pushing SObject and attachment (base 64 data) in the same XML file. #
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.
-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 the Agent control board (old), and We need the Adapter to transfer the data from one System to another system or computer. 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.
Syntax :
VLOOKUP(Account,Id,Name,PledgeDonation.PledgeType)
Summary #
In this tutorial, we have learned about How to import files to ContentVersion in Salesforce. This function is useful for users who want to import files to Business Sobject. We need to follow four steps to this function, as we have learned already.