1. Home
  2. Dokumente
  3. Agent (Any Connect)V 3.0 Administration Guide
  4. 4. Connector supported by the Agent
  5. 4.2 FTP, SFTP & FTPS

4.2 FTP, SFTP & FTPS

Agent File Adapter Protocol FTP, SFTP & FTPS

Agent File Adapter for consumers means Inbound Agent File Adapter. We use Inbound Agent File adapter for reading using the new event-driven mode with the consumer. We have an event-driven listener who is a camel consumer. We don’t need a scheduler. We add the real-time and event-driven feature to pick up immediately. To use the Agent file for consumers, we need to configure the Agent Control Board, and we need to create an Agent File adapter.

–How to use FTP Adapter (FileZilla Client & Server) with Agent Control Board?

Since the user now completely understand; How to use FTP Protocol (FileZilla Client & Server), Agent Control Board, by hitting the upper link, now we understand the Architect of the Agent Control Board.

FTP Type (SFTP)

  • FTP (SSH File Transfer Protocol) is a secure file transfer protocol. It runs over the SSH protocol. It supports the full security and authentication functionality of SSH.
  • FTPS has pretty much-replaced legacy FTP as a file transfer protocol and is quickly replacing FTP/S. It provides all the functionality offered by these protocols, but more securely and more reliably, with easier configuration. There is basically no reason to use legacy protocols anymore.
  • SFTP also protects against password sniffing and man-in-the-middle attacks. It protects the integrity of the data using encryption and cryptographic hash functions and authenticates both the server and the user.
Note
For Excel and CSV File, user can just do the same as XML File. But the user only needs to change the file Protocol, adapter, and its properties accordingly.

  • Select Type “Agent File
  • File Extension*: insert your extension file
  • Max. in each file size around 5MB
  • For on extensions use (.CSV)
  • For few extensions use (.CSV, .xls, .xlsx, xml, json)
  • For many extension use (.*)

Protocol FTP Adapter is used as a connector to transfer data from the FTP server to Salesforce and from Salesforce to the FTP server. The File Transfer Protocol (FTP) is a standard network protocol used for the transfer of computer files between a client and server on a computer network.

Case 1

Create Inbound Agent File Adapter for JSON format and Protocol: FTP

Create Inbound Agent File Adapter for excel format

1. Adapter Section: Choose Protocol (FTP)
2. Adapter Properties:

  • Name: any Name
  • Type: Agent File
  • Direction: Inbound
  • Protocol: FTP
  • Host: Public IP Address
  • Username: FTP Username
  • Password: FTP password
  • Port: FTP Server Port(21)
  • File Type: JSON
  • Folder: Sreymay/Inbound/Json
  • File Name: Final_json5.json
  • What to do with the file after Processing?: Delete File
  • Connection Destination: your destination name

You will get a success message when the route started successfully.

  •  Here is a result of JSON in Message Monitor

Case 2

Create Inbound Agent File Adapter for Excel format and Protocol: FTPs

Create Inbound Agent File Adapter for excel format

Fill all required field

  • Name: any Name
  • Type: Agent File
  • Direction: Inbound
  • Protocol: FTPs
  • Host: Public IP Address
  • Username: FTPs Username
  • Password: FTPs password
  • Port: FTPs Server Port
  • File Type: Excel
  • Folder: Sreymay/Inbound2/Excel
  • File Name: MyAccount2.xlsx
  • What to do with the file after Processing?: Delete File
  • Connection Destination: your destination name

You will get a success message when the route started successfully.

  • Here is the result of Excel in Message monitor

Case 3

Create Inbound Agent File Adapter for XML format and Protocol: SFTP

Create Inbound Agent File Adapter for XML format

Fill all required field

  • Name: any Name
  • Type: Agent File
  • Direction: Inbound
  • Protocol: SFTP
  • Host: Public IP Address
  • Username: SFTP Username
  • Password: SFTP password
  • Port: SFTP Server Port
  • File Type: XML
  • Folder: SFTP/XML
  • File Name: Account-SB3.xml
  • What to do with the file after Processing?: Delete File
  • Connection Destination: your destination name

You will get a success message when the route started successfully.

  • Here is the result of XML in the Message monitor

 

 

Fandest du diesen Artikel hilfreich? Ja Nein

Wie können wir helfen?