Skip to main content
Gainsight Inc.

Preparation of Connector Jobs

Gainsight NXT

This article supports Gainsight NXT, the next evolution of the Customer Success platform. If you are using Gainsight CS Salesforce Edition, you can find supporting documentation by visiting the home page, and selecting CS > Salesforce Edition.

Not sure what your team is using? Click here.

 

IMPORTANT - Articles Impacted due to 6.34 October NXT Release

Due to the v6.34 October, 2022 release, this article has been impacted. Steps, images, and playable GIFs in this article will soon be updated to reflect the latest changes.

For more information about the latest UI changes, click here.

 

IMPORTANT: Gainsight is upgrading Connectors 2.0 with Horizon Experience. This article applies to tenants which have been upgraded to the Horizon Experience for Connectors 2.0. If you are using Connectors 2.0 with the previous version, you can find the documentation here.

This article explains to admins how to create a data job to sync data from an external application to Gainsight.

Overview

After creating a connection with the external application, admins can create custom jobs to sync data from the external application to Gainsight. Gainsight offers Out Of the Box (OOB) Jobs for a few Connectors which is needed for initial setup to sync data from the other source objects into Gainsight.

To access the Jobs page, navigate to Administration > Integrations > Connectors 2.0 > Jobs.

5.png

In the Jobs list page, you can see that single or multiple jobs are associated with a connection. You can find a specific Job either by using the Search text box or by using Connections text box to search Jobs by Connection Name. The Jobs page provides the following details of each job:

Column

Description

Job name

This shows the name of the Job.

Connection name

The Connection name created in Connections Page.

Source

The System from which data is being fetched.

Destination

Refers to the target Gainsight object.

Last Run Status

Indicates the status  of the executed Jobs as Success, Partial Success, or Failed in the last run.

Last Run On

Indicates timestamp and the date on which the Job was last run.

Schedule Type

Indicates the schedule type of Data Sync Jobs as Scheduled Execution or On Demand. For more information on Schedule Type, refer to the Configure Jobarticle in the Additional Resources at the end of this article.

Context Menu Options

From the Context menu of a Connection, select one of the following options to perform the respective actions:

  • Edit Job: Use this option to edit a job. For more information, refer to the Jobs List page article in the Additional Resources section at the end of this article.
  • Delete Job: Use this option to delete the selected Job.
  • Run Job: Use this option to execute the job with one of the data sync options:
    • Data modified since last Sync Date and Time
    • Data modified within a specified Time and Date
    • All Data

For more information on Run Job options, refer to the Configure Job or Job Chain article in the Additional Resources section at the end of this article.

6.png

Create a Connector Job

In the data jobs, you can select a data source and create a dataset, merge two different datasets to create an output dataset, transform dataset, and then sync final data to Gainsight through Add to Destination. The following functionalities are available while creating a data job:

To create a job:

  1. Navigate to Administration > Integrations > Connectors 2.0 > Jobs. You can see the existing Jobs of all the Connections.
  2. Click Create Job. Create Job popup window is displayed.

7.png

  1. In the Name of the Job field, enter a unique name.
  2. Click Next. Preparation step is displayed.

8.png

  1. From the Data Source dropdown, select the connection. All the objects under the selected data source are displayed.

9.png

Add Source object

To add source object:

  1. Drag and drop the required object from the Objects list to the Preparation step. Object details page is displayed, where you can select Fields, add Filters, and view Summary.

Fields

In the Fields tab, you can select the source fields from which you want to sync data into Gainsight.

To select fields:

  1. (Optional) In the Name of the Dataset, you can modify the name of the source object.
  2. (Optional) In the Reference for primary key field, select a primary field for reference.
  3. (Optional) In the Reference for last modified date field, select a field which can be used as a reference for last modified date of a record.
  4. Select the required fields to be added in the source object.
  5. (Optional) In the Display Name field, you can modify the field name.
  6. Click the Filters tab.

11.png

Filters

In the Filters tab, you can add filters to sync data from the source object as per your requirement. For example, you can add filters to sync data after a particular date.

To add filters:

  1. Click Add Filter.
  2. From the Field, select the field you want to filter on.
  3. From the Operator field, select the operator.
  4. From the Value field, select the appropriate value.

Notes:

  • To Add more filters, click + icon.
  • To Delete a filter, click x icon.
  • To add advance filters such as (A OR B) AND C, type in your desired expression in the Advanced Logic text box.
  1. Click the Summary tab.

Summary

In the Summary tab, you can view a list of all selected fields and added filters in the source object.

13.png

IMPORTANT: 

  • Once the source object is prepared, you can Add Destination to the source object or you can configure (Transform or Merge) the source object. For more information on how to add destinations, refer to the Add to Destination section.

Transform

In the Preparation step, admins can transform data and add Case fields to get more meaningful insights from the customer data.

Example Business use case: The Transform function provides the capability to create or modify new case fields. The new case fields can be used to modify the external field as per the consumption requirement in Gainsight’s data model. Case fields can be defined to populate different values for different case conditions.

For example, External picklist values such as New, Open, and Closed can be modified to Active and Inactive to match Gainsight’s picklist values.

Note: Transform function is only available for Zendesk, Freshdesk, ServiceNow, Jira, Zuora, Zoho and Pipedrive.

To transform a object:

  1. Navigate to Administration > Connectors 2.0 > Jobs tab.
  2. Click Create Job.

14.png

  1. In the Name of the Job field, enter a name.
  2. Click Next.

16.png

  1. In the Data Source dropdown, select a source.
  2. Drag and drop the required object to the Preparation screen.
  3. From the context menu of the dataset, click Transform.
  4. Click Add Case Field.
  5. In the Label field, enter the name for the case field.
  6. From the Data Type field, select the data type as Boolean, Number, or String.
  7. Click Case 1 to expand the view.
  8. Click Add Filter to add a condition as per your requirement.
  9. In the THEN field, select the field and the value to display the resultant data when the set conditions are met.
  10. (Optional) Click +CASE to add another case field by following steps 3 to 7.
  11. From the DEFAULT field, select a value when none of the conditions match.
  12. Click Add.
  13. Click Save.

Merge

You can merge two datasets together and create an output dataset. You can merge two datasets or multiple datasets and create one final dataset.

Business Use Case: For instance, if you want to know the details of the tickets and users who create support tickets in Zendesk. To achieve this use case, you can merge datasets created on Zendesk Tickets and Zendesk Users objects into one output Dataset and import data into Gainsight Standard or Custom objects (Target object).

To merge two Datasets, select Merge from the options of the dataset that you want to merge with the required dataset.

Once you merge the datasets, a new window with the dataset name ‘Merge’ appears, where you can see Join, Fields, Filters, and Summary tabs.

Join

Basic JOIN clauses are used to combine rows from two or more tables, based on a common field between them. There are four types of Joins supported in Gainsight: Inner Join, Left Join, Right Join, and Outer Join. Each join type, when used with a Merge task in the Connectors, produces a slightly different data set. For more information, refer to the Join Types article.

  • Inner Join:  It retains common records from both datasets. 
  • Left Join: It retains all the records from the left dataset.
  • Right Join: It retains all the records from the right dataset.
  • Full Outer Join: It retains all records from both the datasets.

To join two Datasets:

  1. Navigate to the Join tab.
  2. Select the required Join type.
  3. Select a field from each dataset to set the criteria. For example, the User ID in the first dataset is Assignee ID, and User ID in the second dataset is ID while merging datasets created on the objects, Zendesk Tickets and Zendesk Users.
  4. Click + to add multiple record matching criteria. This helps filter the records based on your business requirements. 
  5. Click Save.

17.gif

Fields

In the Fields tab:

  1. Select/Deselect the individual fields that are added from the source datasets and add them to the merged output dataset.
  2. (Optional) In the Display Name field, you can modify the display name. 
  3. Click Save.

18.gif

Filters

Filters in Merge work as filters in Prepare Dataset. For more details, refer to the Filters section.

Summary

In the Summary tab, you can view Join details, a list of all Fields, and Filters in the Dataset.

19.png

You can now proceed to the configuration step. For more information on how to configure a dataset, refer to the Configuration of Job or Job Chain Schedule article in the Additional Resources section at the end of this article.

Note: If you want to delete a dataset permanently from a data job, click Delete from the options of the dataset.

Add to Destination

Once the final output dataset is prepared, a destination can be added to the output dataset to sync data from the source to the target Gainsight object. In Add to Destination, you can select the target object from Gainsight and map the source fields from external system objects to their corresponding target fields in Gainsight. 

To add destination to the output dataset:

  1. Click the three dots menu of the final output dataset and select Add Destination.
  2. From the Gainsight Object dropdown, select the target Gainsight object. After you select the target object, you can proceed to configure the Direct and Derived Mappings between the source and target fields.

Note: You can select any of the source objects added to the Preparation screen including merge or add destination. The source object cannot be changed once you proceed to the field mappings.

Scheduled Fields

This section contains the following sub sections:

Direct Mapping

In Direct Mapping, you can map fields from the output dataset to the target object in the field mappings. Data sync happens from the source fields of the external system to the target fields of Gainsight, based on the configured field mappings. You can see all the selected source fields from the dataset in the Source Field column.

To add direct mapping between the fields:

  1. In the Target Field column, select the fields to which data should be synced.
  2. Select the Include in identifiers check box for at least one of the fields. It helps to identify a unique record from Source to Gainsight while updating data into the remaining mapped fields. Any Source field which has unique values can be used as an Identifier (Example: Zendesk Ticket ID to External ID in Gainsight).
  3. You can now proceed to the Derived Mapping section.

scheduled direct mapping.jpg

Derived Mapping

This is optional and you must configure the Derived Mappings only if you want to populate values into the target fields of data type GSID. GSID values are populated from the same or another object through lookup.

In this Derived Mapping stage, create Lookup mapping in a data sync job. You can have a lookup to the same object or another standard object and match up to six columns. Once the required matching is performed, fetch Gainsight IDs (GSIDs) from the lookup object into GSID data type fields. For more information on the Derived Mappings, refer to the Data Import Lookup article in the Additional Resources section at the end of this article. 

IMPORTANT: To use derived mappings, the target object must have at least one field of data type GSID.

  1. Click Derived Mapping to expand.

  2. Click the Configured Derived Mapping button.

  3. Click the Add Mapping button to add a Derived Mapping field.

  4. From the Salesforce Field dropdown menu, select the source.

  5. From the Data Flow dropdown menu, select the direction in which the data should be fetched.

  6. From the Gainsight Field dropdown menu, select the value.
    Note: Only fields with GSID data type are displayed in the Gainsight Field dropdown. Define Lookup gets enabled with a cross icon(which states Configuration Pending).

  7. Click the Define Lookup button. The Define Lookup slide-out panel appears.

  8. From the Select the intermediate object dropdown, select an intermediate object for the lookup.

  9. From the Field in Intermediate Object dropdown menu, select the object to be mapped.

  10. In When Multiple Matches Occur dropdown menu, select a value.
    Note: The selected value determines what action must be performed when multiple records are found for the matching criteria. The following are options in the dropdown menu of When Multiple Matches Occur dropdown menu:

  • Use any one match: One of the two records is selected.

  • Mark record with an error: The record is not synced and is marked as an error.

  1. In When no matches are found dropdown menu, select a value.
    Note: The selected value determines the action to be performed when no matching records are found. The following are options in the When no matches are found dropdown menu:

  • Insert Null Value(s): Null value is inserted in the GSID field of the target object.

  • Reject Record: The specific record is not considered and is rejected.

  1. Click Done. The Define Lookup appears with a green tick icon(which states Configuration Completed).

  2. (Optional) Click the Add icon to add another matching criteria.

Summary

In the Summary tab, the details of Direct and Derived Mappings are available in Dataset.

Scheduled summary.png

Once you complete the preparation of the dataset, navigate to the Configure step to schedule the job execution. For more information on how to Configure the Job, refer to the Configuration of Job or Job Chain Schedule article in the Additional Resources section at the end of this article.

  • Was this article helpful?