SK SKYVVA Documentation

2. How to Export Binary file using manual process ?

The technical integration scenario involves the SKYVVA integration application and the handling of binary files in the context of an Internet Adapter for outbound interfaces.

While dealing with binary files in integration, the user will consider the following aspects:

Expectation:

How does the outbound processing of the Internet adapter work in a user integration scenario? The goal is to export a binary file type, such as an image stored as a binary blob in Salesforce, and send it to Google Drive. Here's a step-by-step overview of the process:

Convert the binary blob (image) stored in Salesforce to a Base64-encoded string. Salesforce supports encoding binary data to Base64 through Apex code. This encoding ensures that the binary data is represented as a string.

The mapping only supports string format, ensure that the mapping configurations in the SKYVVA integration application are set up to handle the Base64-encoded string format.

Configure the outbound processing in the Internet adapter (Google Drive) to accept the Base64-encoded string as input.

Use the configured Internet adapter in support of the SKYVVA integration application to transmit the Base64-encoded string to Google Drive.

[su_box title="Note" box_color="#D71339" title_color="#000000"]The support for Binary File type has been integrated into adapters such as Google Drive, Dropbox, Amazon S3, and Microsoft OneDrive.[/su_box]

Required step:
Define Interface and Mapping:

FILE_NAME

Go to Interface Detail -> Scroll down to SOQL Query for filter sObject -> Set the condition on the file Filter Query

[su_box title="Result:" box_color="#2a8af0" title_color="#000000"]The 'Manual Process' button for the callout execution, we obtain a 'Message Success' notification accompanied by a payload. This payload is determined by the conditions specified in the 'Filter Query' of the 'SOQL Query for filter sObject' section. Consequently, the payload retrieved from Google Drive contains images represented as a binary blob.[/su_box]

Note:
Open this article in the interactive viewer →