Skip to main content
Gainsight Inc.

Gainsight PX Connector

This article explains how to configure the PX Connector in the Gainsight application and the associated data sync jobs with PX connector.

Overview

Gainsight PX (Product Experience) is Gainsight’s premier tool to set up in-app messages and collect useful analytics from web applications. PX Connector allows you to establish a link between Gainsight and PX. This connector is located on the Connectors 2.0 page. Once you establish a connection with PX, you can sync usage data from PX into Gainsight. Once you sync data from your PX org to Gainsight, you can use the data in Gainsight’s Adoption Explorer to get real time insights of your data, advanced data visualization methods, and so on. To learn more about Gainsight Adoption Explorer, refer to the Adoption Explorer Overview article.  

PX1.png

To setup the Gainsight PX connector, you must perform the following tasks:

Create Connection

This section explains how to create a connection to PX from Gainsight. You must use the API secret key of the PX Connector to establish a connection between PX and Gainsight. You can create only a single connection at any given point of time, in PX connector.

To create a connection:

  1. Navigate to Administration > Operations > Connectors 2.0. The Connectors 2.0 page is displayed.
  2. Click the CONNECTORS tab.
  3. Click the Gainsight PX widget.
  4. Click the Create Connection icon. The Add Connection Details window is displayed.

PX2.GIF

  1. Perform the following tasks:
    1. In the Name field, enter a name for the connection.
    2. In the API Secret Key field, enter the API secret key of the PX org, to which you wish to establish a connection.
    3. Click TEST CONNECTION. If you entered the right key, the test connection is successful.  
    4. Click CREATE.

PX3.GIF

IMPORTANT: The REST API key is the API secret key of the Gainsight PX org. You can create REST API key in PX by navigating to Settings > REST API section in Gainsight PX.

PX4.png

Configure Data Sync Jobs

This section explains how to configure the data sync jobs in PX connector. By default, PX connector has two data sync jobs. You cannot create custom data sync jobs in Gainsight PX. The two out of the box jobs are Company Sync and Company Person Sync jobs.

Company Sync Job

This job is named Company Sync_Connection name (here Company Sync_Connect to PX). This job syncs data from the Account object in Gainsight PX to the Company object in Gainsight. By default, there are three field mappings in this data sync job. However, none of the three mappings are configured as the Upsert key. You must either use an existing mapping as the Upsert key or manually configure a new mapping and set it as the Upsert key. Without configuring the Upsert key you cannot schedule or execute the job.

This job has five stages:

Job Configuration

In this stage, the basic job details like Connection name, connector used, the job name and other jobs which are dependent on this job are displayed. The Notification Details fields of this stage contains the email address of the logged in user. You can add, edit, or delete email recipients.In Notification Details you can add email IDs of recipients who need to be notified when this job execution succeeds or fails. Once you make the required modifications, you must click SAVE to view the other stages of this job.

PX5.png

Data Source and Field Mappings

This stage consists of the source and target object for data sync. You cannot change the source and target object fields. The source object is the Account object from Gainsight PX and target object is Gainsight Company object. There are three field mappings which are displayed below:

  • Name (PX Account object) -> Name (Gainsight Company object)
  • Number of users (PX Account Object) -> Number of Users (Gainsight Company object)
  • Id (PX Account Object) -> PX Account ID (Gainsight Company object)

IMPORTANT: Admins must configure a mapping for an external ID field that is available both in GS Company Object and PX Account object. This mapping must be marked as the upsert key. You cannot sync this job without configuring an Upsert key. Click ADD to configure a new mapping. Once you configure a mapping, select the Upsert Key check box for your newly configured mapping mapping, to set it as the Upsert key. Click SAVE MAPPINGS, once you configure the Upsert key.

PX6.GIF

Derived Mappings

In this stage, you can configure the derived mappings. For more information about derived mappings, refer to the Data Import Lookup article. By default, there are no derived mappings.

Sync Filters

In this stage, you should can the filters. The filters configured in this stage are applied during data sync and only those records which math the filter criteria are synced. By default, there are no filters.

Schedule

In this stage, you can schedule your data sync job to be executed later, or execute a Data sync Job on the fly. By default, the schedule is set to one hour interval. You can view this when you select the Enable schedule check box.

PX7.png

Scheduled Execution

In this subsection, you can schedule the execution of the job as required. When the job is executed for the first time, all the values are inserted into Gainsight NXT. For all subsequent job executions, only the newly added data is inserted; if any data which was previously inserted into Gainsight NXT from Salesforce, is modified in Salesforce, corresponding data in Gainsight NXT is updated.

To schedule the job:

  1. Select the Enable Schedule check box.
  2. Select one of the following options:
    1. Daily: The data is synced on a daily basis.
      1. Select Once to run the job once everyday. Choose the time at which the job must be executed, in the Select a Time section.
      2. Select Repeat to repeat the execution of the job. Select the other options as listed below:
  • You can select the time frame between which the execution must be performed, in the From and To fields.
  • You can select the frequency at which the execution must be performed in the set time frame, in the For every field.

For example, if you select from 10 am to 2 pm time frame and select every hour frequency, job is executed five  times at 10,11,12,1 and 2.

  1. Weekly: Select the days of the week on which the job must be executed.

Select the required time at which the job must be executed, in the Select a Time field.

  1. Monthly: Select the date on which the job must be executed, in the Monthly on day field. Select the required time at which the job must be executed, in the Select a Time field.
  2. Click SAVE.

PX8.gif

On Demand Execution

In this sub section, the following options enable you to execute the job immediately:

  • Import Now: If you select this option, job execution is started immediately. In the first execution, all the data from 1970 till date is executed. For subsequent imports, the last import date is considered to be the start date and current date is considered to be the end date. For example, if you imported data for the first time on 1st Feb 2018, data is imported from 1st Jan 1970 to 1st Feb 2018. If you execute the job again on 5th Feb 2018, new records and modified records between 1st Feb and up to 5th Feb are imported.
  • Import From Date: If you select this option, the job is executed and data updated during the specified dates in Salesforce, is added to Gainsight. You can select date range in this option to import new and modified Salesforce records in the specified date range.

PX9.png

Click IMPORT to start the data import process.

Company Person Sync Job

This job is named Company Person Sync_Connection name (here Company Person Sync_Connect to PX). This jobs syncs data from the User object in Gainsight PX to the Company person object in Gainsight.

This job has five stages:

Job Configuration

This stage has the same fields and configurations as in the case of Company sync job. You can find the Connection name, Job name, and Notification Details section. This job has a dependency on the Company Sync job. The Company sync job is executed before executing this job. Once you make the required modifications, you must click SAVE to view the other stages of this job.

Data Source and Field Mappings

This stage syncs data from the Gainaight User object to the Person and Company Person objects in Gainsight. This stage has five field mappings:

  • Email (PX) -> Email (Person)
  • First name (PX) -> First Name (Person)
  • Last Name (PX) -> Last Name (Person)
  • Sign up date (PX) -> Sign up date

The mapping between Email field in PX and Email field in gainsight is used as the Upsert key. You cannot change the upsert key. You can create new field mappings but cannot use them as the Upsert key.

PX10.png

Derived Mappings

This stage allows you to configure the derived mappings to populate GSID values. By default, a derived mapping is configured to populate GSID values into the Company ID field of the Company object. This mapping is configured by matching the Account id field of the Account object in PX with the PX Account ID field in Gainsight Company object. To add more derived mappings, click ADD. To learn more about configuring derived mappings, refer to the Data Import Lookup article.

PX11.GIF

Sync Filters

In this stage, you should configure the filters. The filters configured in this stage are applied during data sync and only those records which match the filter criteria are synced. By default, there are no filters. By default, the filter is configured to sync only those records which have an Email ID. You cannot remove this filter, since Email field is used as an Upsert key.

PX12.png

Schedule

This stage allows you to schedule the execution of this job. The schedule of this job works the same way as in the Company Sync job. The configurations to schedule the execution remain the same.

View Logs

You can navigate to the LOGS tab to see the log history of all the data sync jobs. This page displays the logs for all the Connectors. You can filter this page to display logs only for a specific job from a specific connector. To filter the logs, select the required job from the Show drop-down menu and click REFRESH.

PX13.GIF

Gainsight maintains two types of Logs for every Data Sync job:

  • Audit logs: An audit log is recorded when an activity is performed on a job. The various activities could be Create, Edit, delete, and so on. Audit logs are represented by AL symbol. The various fields displayed in this log are:
    • Attribute: The stage of the job which was modified. For example, if you modified a mapping, this field displays Mapping.
    • Sub-Attribute: The element modified in an attribute..
    • Action: The activity performed on the job. Possible values can be Create, Edit, Delete.
    • Old Value: The value which was modified.
    • New Value:The current value in the modified field.
    • Additional Info: Additional information about the activity.

PX14.GIF

  • Execution logs: An Execution log is created when a job is executed. Execution logs are represented by EL symbol. An EL symbol in green indicates a successful execution.

The various details displayed by Audit logs are:

  • Date: The date of job execution.
  • Calltype: Always displays APPLICATION_DATA for SFDC connector.
  • pStatus: The status of the job. Possible values could be Success, Failure, in progress.
  • # Success: Number of records which were synced successfully.
  • # Failure: Number of records which failed to sync.

PX15.GIF

The LOGS page displays the logs only for the Data Sync jobs. To view the Connection logs, you can navigate to the Salesforce Connector logs page. The various columns in Connection logs are:

  • Connection Name: The name of the connection.
  • User: The user who created the connection.
  • Action: The action performed on the connection.
  • Modified on: The date on which the connection was last modified.
  • Attribute: The element modified in the connection.
  • Old Value: The value which was replaced after modification.
  • New Value: The new value which replaced the old value.

PX16.GIF

Use Gainsight PX data in Adoption Explorer

After successful integration of PX with Gainsight, you can use PX data in the Gainsight Adoption Explorer. Adoption Explorer is a new end-to-end tool that creates the data structures needed to effectively model product adoption data, provides integrated statistical calculations and algorithms that take the lift out of generating data science insights, and pre-built visualizations that provide structure insight for every user.

To learn more about using Gainsight PX data in Adoption Explorer, refer to the Enable Gainsight PX Data in Adoption Explorer article.

  • Was this article helpful?