Using the Data Connector applet you can retrieve data from Salesforce. For information about the Data Connector applet, see Data Connector applet. You can then retrieve that data for use in subsequent applets in your interaction plan. ContactWorld stores retrieved data in data Connector, one data source for each specified field of each retrieved Salesforce record. ContactWorld prepares these data sources when you save the Data Connector applet, using a consistent naming convention. You can configure subsequent applets (such as a Data Announcer, a Data Router, another Data Connector applet, or an Automatic Call Distributor applet) to use the data sources created.
If enabled for your account, you can also create records in Salesforce. For information about using the Data Retriever to create records in Salesforce, see Creating a Salesforce record.
To use the standard Salesforce interface to retrieve data from Salesforce, perform the following steps:
- Create a Data Retriever applet. For information about creating an applet, see Creating an applet. A new Data Retriever applet appears.
In Interface in the Interface section, click Salesforce. The Action section appears.
Optionally select the applet that ContactWorld routes the call to if the interface fails in the Interface Failure list.
An interface failure occurs when the request does not receive a response or receives an error from Salesforce. A timeout, DNS lookup failure, incorrect or expired password, HTTP error status code, or an invalid SOQL query, for example, might cause an interface failure.In the Action list, click Get Salesforce Data. The Salesforce Match and Fields to Retrieve sections appear.
In the Salesforce Match section, provide the following information:
Field Description Salesforce Object The Object list contains the available Salesforce objects. Click the object you want to search. Find Salesforce Record(s) Using The type of source that the data you want to use is contained in. Click either CLID, IVR Slot or Data Source. If you click Data Source, the Match Data Source and against Salesforce field fields appear. If you click IVR Slot, the Match IVR Slot and against Salesforce field fields appear. Match Data Source Contains available data sources. Click the data source that contains the data you want to use to search for a Salesforce record or records. Match IVR Slot Contains available IVR slots. Click the data source that contains the data you want to use to search for a Salesforce record or records. against Salesforce field Contains fields available for searching on the selected Salesforce object. Click the field to which you want to match the CLID, selected IVR slot, or selected data source. In the Fields to Retrieve section, provide the following information:
Field Description Retrieve Multiple Records Select the Retrieve Multiple Records check box if you want the Data Retriever to retrieve multiple matches. If you select Retrieve Multiple Records, the Maximum Number to Retrieve field appears. Maximum Number to Retrieve If you want to the Data Retrieve to retrieve multiple records, you must specify the maximum number of records to retrieve. ContactWorld uses this value to prepare the correct number of data sources to hold the returned values Add Field to Retrieve Contains fields available on the retrieved records. Click the field or fields you want to retrieve. Click Remove to remove any fields you no longer want.
In the Routing section, provide the following information:
Field Description Successful Action Contains available applets. Click the applet that ContactWorld routes the interaction to after a successful action.
A successful action indicates that the Data Retriever finds a match for the chosen object in Salesforce.Multiple Salesforce Matches Contains available applets. Click the applet that ContactWorld routes the interaction to if the Data Retriever finds multiple matches for the chosen object in Salesforce. This field is only available if you do not want to return multiple matches and clear the Retrieve Multiple Records check box. No Salesforce Match Contains available applets. Click the applet that ContactWorld routes the interaction to next if the Data Retriever finds no matches for the chosen object in Salesforce. Click Update. ContactWorld creates data sources based on the values that will be retrieved at run time. For information about the data sources ContactWorld creates, see Data source names.
When ContactWorld routes an interaction through the Data Retriever applet, the created data source or sources are populated with retrieved values.
Data source names
ContactWorld creates data sources using the following naming convention:
Single matches
Each data source is named ObjectName|FieldName where:
- ObjectName is the object you select in the Salesforce Object list
- FieldName is a field you select in the Add Field to Retrieve list
ContactWorld creates a data source in this format for each field you select in the Add Field to Retrieve list.
For example, if you specify that you want to retrieve Account ID and Account Name fields from a single account record, ContactWorld creates data sources called Account|Account ID and Account|Account Name.
Multiple matches
Each data source is named ObjectName(n)|FieldName where:
- ObjectName is the object you select in the Salesforce Object list
- n is the index of the record found in Salesforce, between 1 and the value you specify in Maximum Number to Retrieve
- FieldName is a field you select in the Add Field to Retrieve list
ContactWorld creates a data source in this format for each field you select in the Add Field to Retrieve list for each record retrieved.
For example, if you specify that you want to retrieve Account ID and Account Name fields from multiple (two) records, ContactWorld creates the following data sources
- Account(1)|Account ID
- Account(1)|Account Name
- Account(2)|Account ID
- Account(2)|Account Name