Map NICE CXone Data to Activity Records and Custom Objects

The Salesforce Extension can store metadata and agent notes about the call in a special activity object. You can map data from Agent for Salesforce to any object and field in Salesforce. This mapping occurs through a centralized extension configuration document stored in Salesforce.

Salesforce stores the CXone data to the most recently opened instance of an object type. You can create custom objects and fields to store CXone data if you don't want to store it in any of the standard objects or fields. See the Salesforce documentation for more details.

The administrator package contains a sample extension configuration document. If you remove the comments in the configuration document, the extension attempts to store default call data to custom fields on the task object. Provide agents with an after call work period to enter notes and explicitly identify the contact and case or opportunity record with which to link the call record. The sample configuration document defines the following custom fields.

When you Enable Screen Pops skills in CXone, the trigger event is set to Linked as the default.

  1. In Salesforce Classic, click the All Tabs icon (indicated by a blue plus sign).

  2. If you are using Salesforce Classic, click Agent for Salesforce Settings.

    If using the Lightning Experience, click the App Launcher icon (indicated by a grid of dots) > View All > Salesforce Agent Settings.

  3. Create different data mappings for each Salesforce profile. You can also create a default configuration that applies to any profile that does not have its own settings.

  4. Determine Task Creation settings.

  5. Under Data Storage, specify whether Agent for Salesforce saves CXone variables to a field in the User object for use by JavaScript code. Agent for Salesforce stores variables as name/value pairs delimited with the pipe sign ( | ). For example: ANI=8015550100|DNIS=8005550122|OPTION=3

  6. To use the information in the External ID field, rather than the phone number, for searches when using Personal Connection, check the box next to Configurable Search for Personal Connection.

  7. Determine Entity Mapping for Who and What Fields settings. There are three options available.

    The Who drop-down is used to select any associated individuals, such as a contact or a supervisor, and the What drop-down is used to select any associated accounts, cases, or opportunities.

  8. Map NICE CXone data values to Salesforce fields and objects. To do so:

    1. In the drop-down, select the object (or entity) and click Add Entity.
    2. Select Add Field and add fields for the entity.
    3. In the first drop-down, select the Salesforce object field.
    4. In the second drop-down, select CallInfo, ChatInfo, EmailInfo, ScriptVariable, VoicemailInfo, or WorkItemInfo to see variables related to the interaction type. If you are using Fully Integrated Lightning Agent for Salesforce, you can also select Master Contact ID, Omni Group ID, or Parent Contact ID. Configure the populated fields as needed.

      The variables you see will differ based upon the interaction type you selected.

      The ScriptVariable field indicates the value of a named variable from the IVRClosed Automated phone menu that allows callers to interact through voice commands, key inputs, or both, to obtain information, route an inbound voice call, or both. workflow script. If you select this type of data value, you can type in a script variable name. The variable must be published from the IVR script for the value to be saved to Salesforce. The Use Screen Pops permission for the skill setting must be enabled in order for the variable to be mapped.

    5. Select the CXone value to save to the Salesforce object field.