SK SKYVVA Documentation

1. How to use the New Agent File adapter?

[su_box title="Note" box_color="#2a8af0" title_color="#000000"]

Introduction

Agent File adapter uses to integrate data from file to SFDC and from Salesforce to file. The File type that Agent support is CSV, XML, and Excel that can be integrated with their content. A File Adapter is an object used to manage file-based information through Clarify. File Adapters aid in the management of file-based resources: they can create, edit, delete, read, or write files on the local file system or on mapped network drives.

How Agent File Works

Business Processes use Agent File Adapter to perform file-based operations on data. Writing data immediately after transformation activity is the most common use of File Adapter. In addition to the data, Business Processes can supply runtime directions to the adapter. For example, a user may want to supply the name of a file to be written to the local file system. The Business Process can supply the file name (and other common runtime values) to the File write Adapter.

Prerequisites

Business Flow

Assign SkyvvaAllPermissions to current User

Creating an Agent File Adapter

Outbound Asynchronous mode

Now Click on Adapter Outbound

Now the user has to go to the Interface Detail page

[su_box title="Package Size" box_color="#2a8af0" title_color="#000000"]Define package size based on how many records user required to process at a time on Processing Mode = Asynchronous[/su_box]

Click on Agent Control Board TabHow to use the Agent Control Board?

Since the user now completely understand; How to use the Agent Control Board, by hitting the upper link, now we understand the Architect of the Agent Control Board now follows below on Salesforce org.

Now Go to Setup and open Developer console 

Open the anonymous Window Ctr+E 

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

Now Go to Message Monitor Tab

Summary

Users have learned about How to use the Agent File adapter. User has to follow the upper steps to understand New Agent File Adapter is always work with Processing Mode=’Asynchronous’ and CSV and EXCEL File is work with flat mapping and XML file is work with hierarchical mapping).

Open this article in the interactive viewer →