新しいドキュメントサイトへようこそ。これまで日本語で公開されていた記事は、本サイトでもご利用いただけます。サイトをご利用の際に、ブックマークを新しいURLに更新してください。日本語版がない記事は、英語版をご利用ください。日本語コンテンツは今後も引き続き更新していきます。

Salesforce Connector Jobs for Renewal Center

Prev Next

Gainsight NXT

This article explains different Salesforce Connector jobs, used by Renewal Center, to sync opportunity and product data between Salesforce and Gainsight.

Overview

Salesforce Connector is a Gainsight tool to sync data between Salesforce and Gainsight. This connector has predefined data sync jobs and you can add custom jobs.

This article focuses on seven sync jobs. Three jobs support the Renewal Center module and sync opportunity data from Salesforce to Gainsight. Four jobs support the Product Catalog module and sync Product and Pricebook data from Salesforce to Gainsight.

The purpose of configuring connector jobs is to synchronize opportunities and the products associated with these opportunities. Opportunity Stage, Record Type, Products, Pricebook, etc., all play a supporting role to achieve this. Admins need to modify Opportunity and Opportunity Line Item sync jobs in order to bring in data from custom fields to show opportunity and product details.

Note:

       
  • Opportunities deleted in Salesforce can be synchronized to Renewal Center (subject to admin configurations). All the Opportunities that are deleted in Salesforce are deleted in Gainsight as well, during the data sync. For more information, refer to the Sync Delete Opportunities between Gainsight and Salesforce section of this article.
  •    
  • When the Picklist data type field is synced from Salesforce to Renewal center, all the Picklist values are automatically synced from Salesforce. You are not required to create Picklist values manually in Renewal Center.
  •    
  • To populate data in Renewal Center, dependent out-of-the-box connector jobs need to be run successfully. For more information on the dependent connector jobs, refer to the Out of the Box Jobs section of the Salesforce Connector article.

Opportunity Sync Job

This job syncs data from the Salesforce Opportunity object to Gainsight’s GS Opportunity object. This job is dependent on Opportunity Stage Sync and Pricebook Sync jobs. By default, the mapping between Opportunity ID field in Salesforce and External Id field in Gainsight is used as the Upsert key.

If your users need to update opportunities from Gainsight and have them synchronized to Salesforce, then all required fields to pass Salesforce validation rules must be mapped. In Stages that require applications such as CPQ, users may need to update the opportunity directly in Salesforce to meet the validation requirements of that Stage.

Note: The Target Amount, Final Amount, Forecast Amount, and Due Date fields are not part of default mappings. These fields must be mapped for successful data sync when using Renewal Center.

The following table contains the default field mappings.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
SFDCOpportunityGS Opportunity
Opportunity IDExternal Id
           Note: Include in identifiers check box is selected.
NameName
Close DateClose Date
StageStage
Forecast CategoryForecast Category
Opportunity TypeType
Next StepNext Step
DescriptionDescription
Has Line ItemHas Line Item
Created DateCreated Date
Last Modified DateModified Date

Derived Mapping

The following tables show derived mapping configurations for Record Type ID, Account ID, Last Modified by ID, Created by ID, Owner ID and Price Book ID lookup fields respectively.

                                                                                                                                                                                                                                                                                                                                               
FieldValue
Select SourceRecord Type ID
Select Target FieldRecord Type
Source ObjectGS Record Type
MATCH BY SOURCERecord Type ID
MATCH BY TARGETExternal Id
When Multiple Matches OccurMark record with an error
When No Matches Are FoundReject Record
                                                                                                                                                                                                                                                                                                                                               
FieldValue
Select SourceAccount ID
Select Target FieldCompany
Source ObjectCompany
MATCH BY SOURCEAccount ID
MATCH BY TARGETSFDC Account Id
When Multiple Matches OccurMark record with an error
When No Matches Are FoundReject Record
                                                                                                                                                                                                                                                                                                                                               
FieldValue
Select SourceLast Modified by ID
Select Target FieldModified By
Source ObjectUser
MATCH BY SOURCELast Modified by ID
MATCH BY TARGETSFDC User Id
When Multiple Matches OccurUse any one match
When No Matches Are FoundInsert Null Value(s)
                                                                                                                                                                                                                                                                                                                                               
FieldValue
Select SourceCreated by ID
Select Target FieldCreated By
Source ObjectUser
MATCH BY SOURCECreated by ID
MATCH BY TARGETSFDC User Id
When Multiple Matches OccurUse any one match
When No Matches Are FoundInsert Null Value(s)
                                                                                                                                                                                                                                                                                                                                               
FieldValue
Select SourceOwner ID
Select Target FieldOpportunity Owner
Source ObjectUser
MATCH BY SOURCEOwner ID
MATCH BY TARGETSFDC User Id
When Multiple Matches OccurMark record with an error
When No Matches Are FoundReject Record
                                                                                                                                                                                                                                                                                                                                               
FieldValue
Select SourcePrice Book ID
Select Target FieldPriceBook
Source ObjectGS Pricebook
MATCH BY SOURCEPrice Book ID
MATCH BY TARGETExternal Id
When Multiple Matches OccurMark record with an error
When No Matches Are FoundInsert Null Value(s)

Sync Delete Opportunities between Gainsight and Salesforce

Gainsight allows you to delete opportunities from the GS Opportunity object during a sync. This ensures that Gainsight data is always in sync with Salesforce and you don’t need to manually delete opportunities from Gainsight.

To facilitate the data sync, you can find a checkbox called Sync Deleted Records, in the Opportunity Sync job. When you check this box, all the opportunities that are deleted in Salesforce are deleted in Gainsight as well, during the data sync.

This does not include requests to delete from Gainsight when the opportunity still exists in Salesforce. For example, if Admin has synchronized all opportunities originally and then restricted the connector filter to synchronize fewer opportunities, then these opportunities that are no longer synced will be outdated. If a user makes changes in GS, such opportunities are saved back to Salesforce and any recent updates in Salesforce will be overwritten by the old opportunity in GS.

Caution: This is a hard delete, and also deletes data in custom fields on the GS Opportunity. Recovering the opportunity in SFDC will re-create the opportunity in Gainsight, but it will be a fresh opportunity and will not have the original data in custom fields.

To use this enhancement:

       
  1. Navigate to Administration > Integrations > Connectors 2.0.
  2.    
  3. Click the Jobs tab. The Jobs page with all the jobs appears.
  4.    
  5. Select Edit from the three vertical dots menu icon of the Opportunity Sync job.
  6.    
  7. Select Edit from the three-dots menu of Add to Destination.
  8.    
  9. In the Scheduled Fields section, check the Sync Deleted Records box.
  10.    
  11. Click Save.
  12.    
  13. Run the data sync job.

unnamed.jpg

Note: Admins can use rules to pre-assign Relationships to Opportunities so that users can work on the Relationship Scorecard and Timeline without having to select the Relationship.

If your data has an SFDC relationship Id, you need to perform derived mapping to map the SFDC Relationship Id field and GS Opportunity Relationship field and then run the rule.

Opportunity Stage Sync Job

This job syncs data between the Salesforce Opportunity Stage object and GS Opportunity Stage object. This job has a dependency on the Company sync job. By default, this job has 11 field mappings. The mapping between Opportunity Stage Id field in Salesforce and External Id field in Gainsight is used as the Upsert key. Gainsight doesn’t recommend changing the Upsert key.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
SFDCOpportunityStageGS Opportunity Stage
Api NameApiName
Opportunity Stage IDExternal Id
           Note: Include in identifiers checkbox is selected.
Probability (%)DefaultProbability (%)
DescriptionDescription
Forecast CategoryForecast Category
Forecast Category NameForecast Category Name
Is ActiveActive
ClosedClosed
WonWon
Master LabelMasterLabel
Sort OrderSortOrder

This job does not have any derived mappings or filters, by default. However, you can add them, as required and schedule the execution or run the job instantly.

Record Type Sync Job

This job syncs data from the Salesforce Opportunity Record type to Gainsight’s GS Record Type object. This job is dependent on the Company sync job. This job has 5 field mappings by default. Apart from the 5 field mappings, you can configure additional field mappings. The default field mappings are given below. (The names of the fields may vary in your Salesforce environment)

                                                                                                                                                                                                                                                                                    
           

Salesforce Record Type Field

           

Gainsight Record Type Object Field

           

Record Type ID

           

External Id
           Note: Include in identifiers check box is selected.

           

Name

           

Name

           

Sobject Type Name

           

SObject Type

           

Active

           

Active

           

Description

           

Description

By default, the mapping between Record Type Id field and External Id field is used as the Upsert key. You can modify this setting to configure different Upsert keys. This job does not have any derived mappings or filters, by default. However, you can add them, as required and schedule the execution or run the job instantly.

Product Sync Job

The Product Sync Job helps you to sync all the Product data from the Salesforce object into a Gainsight object. This job syncs data from the Salesforce Product2 object to Gainsight Product object. This job has no dependencies.

In the Direct Mapping section, this job has eight fields mapped by default. You can customize the default mapped fields and also configure additional field mappings. The following table contains the default field mappings.

                                                                                                                                                                                                                                                                                                                                                                                       
Salesforce Product2Gainsight Product
Product IDExternal Id
           Note: Include in identifiers checkbox is selected.
Product NameName
Product FamilyProduct Family
Quantity Unit of MeasureQuantity Unit of Measure
Product SKUSKU Code
ActiveActive
Product DescriptionDescription
Product CodeProduct Code

Pricebook Sync Job

The Pricebook Sync Job helps you to sync all the data for the Pricebooks from the Salesforce object into a Gainsight object. This job syncs data from the Salesforce Pricebook2 object to the GS Pricebook object. This job has no dependencies.
In the Direct Mapping section, this job has five fields mapped by default. You can customize the default mapped fields and also configure additional field mappings. The following table contains the default field mappings

                                                                                                                                                                                                                                                               
           

Salesforce Pricebook2

           

GS Pricebook

Price Book ID            

External ID

           

Note: Include in identifiers check box is selected.

           

Active

           

Is Active

Price Book Name            

Name

Is Standard Price Book            

Is Standard

           

Description

Description

Pricebook Entry Sync Job

The PricebookEntry Sync Job helps you to sync all the data for the Pricebooks that have Products added to it from the Salesforce object into a Gainsight object. This job syncs data from the Salesforce PricebookEntry object to GS Pricebook Entry object. This job is dependent on the Pricebook and Product sync jobs.

In the Direct Mapping section, this job has seven fields mapped by default. You can customize the default mapped fields and also configure additional field mappings. The default field mappings are:

                                                                                                                                                                                                                                                                                                                                               
Salesforce PricebookEntryGS Pricebook Entry
Price Book Entry IDExternal Id
           Note: Include in identifiers checkbox is selected.
Product NameName
List PriceList Price
Use Standard PriceUse Standard
ActiveIs Active
Price Book IDReference from Derived Mapping
Product IDReference from Derived Mapping

Derived Mapping

The following tables show derived mapping configurations for Product ID and Price Book ID lookup fields.

                                                                                                                                                                                                                                                                                                                                       
FieldValue
Select SourceProduct ID
Select Target FieldProduct
Source ObjectProduct
MATCH BY SOURCEProduct ID
MATCH BY TARGETExternal Id
When Multiple Matches OccurMark record with an error
When No Matches Are FoundReject Record
                                                                                                                                                                                                                                                                                                                                       
FieldValue
Select SourcePrice Book ID
Select Target FieldPriceBook
Source ObjectGS Pricebook
MATCH BY SOURCEPrice Book ID
MATCH BY TARGETExternal Id
When Multiple Matches OccurMark record with an error
When No Matches Are FoundReject Record

Note: You can customize the configurations for Price Book ID and Product ID from the Derived Mapping section.

Opportunity Line Item Sync Job

The Opportunity Line Item Sync Job helps you to sync all the data for an opportunity that has products added to it. This job syncs data from the Salesforce OpportunityLineItem object to GS Opportunity Line Item object. This job is dependent on the Pricebook, Product and Opportunity sync jobs. This job has nine fields mapped by default. You can customize the default mapped fields and also configure additional field mappings. The default field mappings are:

                                                                                                                                                                                                                                                                                                                                                                                                                               
Salesforce OpportunityLineItemGS Opportunity Line Item
Line DescriptionDescription
Line Item IDExternal Id
           Note: Include in identifiers check box is selected.
Opportunity IDOpportunity
Opportunity Product NameName
Price Book Entry IDPriceBookEntry
Product IDProduct
QuantityQuantity
Sales PriceSales Price
Total PriceTotal Price

Derived Mapping

The following tables show derived mapping configurations for Product Id, Price Book Entry Id and Opportunity Id lookup fields respectively.

                                                                                                                                                                                                                                                                                                                                       
FieldValue
Select SourceProduct ID
Select Target FieldProduct
Source ObjectProduct
MATCH BY SOURCEProduct ID
MATCH BY TARGETExternal Id
When Multiple Matches OccurMark record with an error
When No Matches Are FoundReject Record
                                                                                                                                                                                                                                                                                                                                       
FieldValue
Select SourcePrice Book Entry ID
Select Target FieldPriceBookEntry
Source ObjectGS Pricebook Entry
MATCH BY SOURCEPrice Book Entry ID
MATCH BY TARGETExternal Id
When Multiple Matches OccurMark record with an error
When No Matches Are FoundReject Record
                                                                                                                                                                                                                                                                                                                                       
FieldValue
Select SourceOpportunity ID
Select Target FieldOpportunity
Source ObjectGS Opportunity
MATCH BY SOURCEOpportunity ID
MATCH BY TARGETExternal Id
When Multiple Matches OccurMark record with an error
When No Matches Are FoundReject Record

Note: You can customize the configurations for Price Book Entry ID, Opportunity ID and Product ID from the Derived Mapping section.

Additional Resources