Tutorials

  1. Home
  2. Dokumente
  3. Tutorials
  4. 110. Agent File Adapter
  5. 110.2. How to use Agent File Adapter For Producer

110.2. 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:

  • Create Metadata Provider, Istructure Repository
  • Create Integration and Configure a new agent control board
  • Create Agent File Adapter (Outbound) on new Agent Control Board
  • Create an Outbound interface
  • Checking Cache monitoring status
  • Callout  to new Agent

How to use Agent File Adapter for Producer?

  1. Create Metadata Provider, Istructure Repository and Create Flat Message

2. Go to the Integration Detail page

  • Click on the new agent control board

  • Now we need to create a connection destination. For that, we can give any name to the destination. As shown below.

  • Fill all the required fields in Salesforce -> Agent

  • Click on the Ping Agent connection

  • Fill all the required fields in Agent -> Salesforce and click on the Ping Salesforce Connection
  • Save

Case 1: Create Outbound Agent File Adapter for CSV format and Protocol: Local.

  • Go to the new Agent control board and create a new Agent File adapter for CSV data format Outbound processing
  • Fill all required field

– Name: any Name

-Type: Agent File

-Direction: Outbound

-Status: Active

-Protocol: Local

-File Type: CSV

-Folder: C: File_Adapter

-File Name: Account.csv

-Outbound File Threshold Size(MB): 5

-File Handling Mode: you can choose the mode

-Connection Destination: your destination name

 

  • Create Integration and Outbound Interface:

Note
Agent File Adapter support only Asynchronous Mode.
  • Outbound Adapter

  • Mapping

3. To checking to catch a new agent control board

  • Integration:

  • Interface:

  • Mapping

  • Adapter:

  • Interface Group:

Callout


skyvvasolutions.CallOutControl c = new skyvvasolutions.CallOutControl();

c.returnJSONComplete=true;

c.actionDoIntegrate=true;

c.isCreateMessage=true;

String[] ids= new String[]{‘0011j00000qwCoXAAU’,’0011j00000qhAC1AAM’};

List<skyvvasolutions.CalloutResponse> result =

skyvvasolutions.Iservices.invokeCalloutV3(‘File_Adapter’,’Outbound’,ids,’AUTO’,c);

  • Message Monitoring:

  • CSV  File:

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

  • Create Outbound Agent File adapter
  • Go to Agent control board -> Click Adapter -> Click New button. (We configuration like the case 1 but choose File Type Excel )

  • Create an Outbound Interface with Message Type

  • Outbound adapter

  • Mapping

  • Callout:

  • Message monitor

Excel file:

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

  • Create Outbound Agent File adapter
  • Fill all required field

-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: C: File_Adapter

-File Name: Account.csv

-File Handling Mode: Append

-Outbound File Threshold Size (MB): 5

-Connection Destination: your destination name

  • Create an Outbound Interface with Message Type.

  • Outbound Adapter

  • Mapping

  • Callout:

  • Message Monitor

CSV:

 

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

  • Create Outbound Agent File adapter
  • Fill all required field

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

  • Create an Outbound Interface with Message Type.

  • Outbound adapter

 

  • Mapping

  • CallOut:

  • Message Monitor

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.

Fandest du diesen Artikel hilfreich? Ja Nein

Wie können wir helfen?