SK SKYVVA Documentation

3. How to use Agent File Adapter For Producer

Introduction

In this tutorial, we will learn how Agent File Adapter works for Producer. Agent File adapter for producer uses for writing a file from salesforce to file. Agent file adapter for Producer means outbound Agent File Adapter. To use the Agent File adapter for Producer, we need to configure the Agent Control Board, and we need to create an Agent File Adapter. In this chapter, we will learn how to use the Agent File adapter for the producer, and we will know how to do outbound with CSV, Excel file type.

Pre-required

Firstly, you need to have some required step before you can use the Agent File adapter:

How to use Agent File Adapter for Producer? Step-1: Create Message Type

Step-2: Create Integration and test connection destination. Create new Integration by following the guide #article/what-is-an-integration-and-how-to-create-it

Case 1: Create Outbound Agent File Adapter for CSV format and Protocol: Local. Step-3: Create an outbound Agent File Adapter on the new Agent Control Board

-Type: Agent File -Direction: Outbound -Status: Active -Protocol: Local -File Type: CSV -Folder: location folder -File Name: Account.csv -Outbound File Threshold Size(MB): 5 -File Handling Mode: you can choose the mode -Connection Destination: your destination name Step-4: Create Outbound Interface

[su_box title="Note" box_color="#2a8af0" title_color="#000000"] Agent File Adapter support only Asynchronous Mode.[/su_box]

Step-5: Check Cache monitoring status

[aux_code language="javascript" theme="tomorrow" title="Callout" extra_classes=""] skyvvasolutions.CallOutControl c = new skyvvasolutions.CallOutControl(); c.returnJSONComplete=true; c.actionDoIntegrate=true; c.isCreateMessage=true; String[] ids= new String[]{'0011j00000qwCoXAAU','0011j00000qhAC1AAM'}; List result = skyvvasolutions.Iservices.invokeCalloutV3('Agent-File','Outbound',ids,'AUTO',c); [/aux_code]

Case 2: Create Outbound Agent File Adapter for Excel format and Protocol: Local.

Excel file:

Case 3: Create Outbound Agent File Adapter for CSV format and Protocol: FTP.

-Name: any Name -Type: Agent File -Direction: Outbound -Status: Active -Protocol: FTP -Host: Public IP Address -Username: FTP Username -Password: FTP password -Port: FTP Server Port -File Type: CSV -Folder: location Folder -File Name: Account.csv -File Handling Mode: Append -Outbound File Threshold Size (MB): 5 -Connection Destination: your destination name

CSV:

Case 4: Create Outbound Agent File Adapter for CSV format and Protocol: SFTP.

Name: any Name -Type: Agent File -Direction: Outbound -Status: Active -Protocol: SFTP -Host: Public IP Address -Username: SFTP Username -Password: SFTP password -Port: SFTP Server Port -File Type: CSV -Folder: C: File_Adapter -File Name: Account.csv -File Handling Mode: Append -Outbound File Threshold Size (MB): 5 -Connection Destination: your destination name

CSV:

Summary: Agent File adapter for Producer uses for writing data from salesforce to file. Finally, we have learned about how to do outbound data from salesforce to file. In Agent adapter for a producer can work with CSV, and Excel data records.

Open this article in the interactive viewer →