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

Configure Timeline Activity Sync from Gainsight to Dynamics 365

Prev Next
This content is currently unavailable in Ja - 日本語. You are viewing the default (English) version.

This article outlines the admin steps to sync Timeline activities from Gainsight to Dynamics 365, along with supported field mappings and common error handling scenarios.

Overview

Gainsight supports writing back Timeline activities to Microsoft Dynamics, enabling enhanced cross-functional visibility and collaboration. This integration ensures that updates made in Gainsight are seamlessly reflected in Dynamics, keeping Customer Success Managers (CSMs) and other teams aligned on customer interactions.

This functionality improves operational efficiency by:

  • Reducing redundant data entry

  • Promoting a unified view of customer engagements

  • Preserving activity context and stakeholder details across systems

Prerequisites

Ensure a seamless sync of Timeline Activities from Gainsight to Microsoft Dynamics by meeting the following prerequisites:

  • Configure and authorize an active Dynamics connection on the Connectors 2.0 page.

  • Ensure that the user, company, activity and activity party data are in sync through connector jobs.

IMPORTANT: Syncing Timeline activities to Dynamics 365 is supported only from the Timeline Admin view. It is not supported using the Rules Engine – Load to Dynamics option.

Sync Timeline Activities to Dynamic 365

If you are an admin, follow the steps below to Sync Timeline Activities to Dynamic 365:

  1. Navigate to Administration > Timeline > Activity Sync.
    Note: The Activity Sync tab is visible when an active Dynamics or Salesforce connection is configured on the Connectors 2.0 page.

    Activity Sync in timeline Administration.

  2. From the Select your connection dropdown list, choose an active Dynamics or Salesforce connection configured through Connectors.
    Note:
    While selecting a connection, consider the following:    

    • Only one Dynamics connection can be used to sync activities to Dynamics 365 at a time.
      User, Company, and Company Person information also syncs from Dynamics to gainsight through the same connection.

    • To avoid data loss or writeback failures, ensure the same connection is used for syncing activities both from Gainsight to Dynamics and vice versa. This is required because bidirectional sync relies on connection-specific identifiers.

      Select a connection from the dropdown.

  3. Turn on the Sync Timeline activities to Dynamics 365 toggle.
    Note: You must map the Timeline Activity Type to the corresponding Dynamics 365 Object using the dropdown list.

    Sync Timeline activities to Dynamics 365 toggle.

  4. From the Activity Type dropdown list, select an activity type. The Activity Type dropdown includes all active Standard and Custom Timeline Activity Types.

    Activity Type dropdown list, to select an activity type.

  5. From the Dynamic 365 Object dropdown list, select the corresponding object. Gainsight currently supports Phone Call, Email, and Appointment as Dynamics 365 objects.
    Note: You can sync multiple activity types to a single Dynamic 365 Object.

    Dynamic 365 Object dropdown list, to select the corresponding object.

Field Mapping

After mapping the Activity Type to a Dynamics 365 object, the admin can configure field mappings using Map Fields to ensure a successful sync. Once the above steps 1–5 are complete, follow these steps to map fields:

  1. Click Map Fields. The Field Mapping slide-out panel appears.

  2. Some Source and Target fields are predefined. To add additional fields, click Add Fields.

    Add field option with some Source and Target fields which are predefined.The following table shows the configured source-to-target field mappings:

    Source (Activity Timeline Fields)

    Target (Email Fields)

    Target (Phone Call)

    Target (Appointment)

    Subject

    Subject

    Subject

    Subject

    Author ID

    Owner

    Owner

    Owner

    Company/Relationship ID

    Regarding

    Regarding

    Regarding

    Notes

    Description

    Description

    Description

    Activity Date

    Configurable by Admins

    Configurable by Admins

    Configurable by Admins

    You can add two types of field:

    • Source Field: All standard and custom fields relevant to the activity type appear in the Source dropdown. To map a value, select a source field and pair it with the corresponding target field.

      Asource field and  the corresponding target field.

    • Custom Field: Use this option to assign a default value to a dynamics field. Perform the steps below to add a custom field:

    1. From the Target dropdown list, select a value.
      Note: The available options are Status and Status Reason.

    2. In the Source, enter the value you want to map.

      Option to assign a default value to a dynamics field.

  3. Ensure all required fields are mapped before saving.

  4. Click Done to save the mappings.

  5. Use the Plus icon to add a new row and Delete icon to remove the mapping or row.
    Note: To save the activity type mapping, complete all required field mappings first.

    Plus and delete icon with map fields option.

  6. Click Save. Changes are saved and all other dynamic connections are hidden from the connection dropdown list.
    Note: The Sync Timeline activities to Dynamics 365 toggle can be turned on or off at any time. Deactivating the toggle stops the sync, but the Activity Type Mapping data is retained.

    Deactivating the sync toggle.

IMPORTANT: Any activity created or updated in Gainsight that matches the sync configuration is synced to Dynamics 365 in real time. There are no scheduled jobs for syncing activities from Gainsight to Dynamics 365.

Note:

  • For custom dropdown fields, such as Activity Reasons and Activity Reason Details, Gainsight relies on consistent label values across Gainsight and Dynamics 365 for successful sync. Admins must manually maintain value consistency, as automatic syncing of dropdown values is not supported.

  • Total Engagement Effort is a number field in both systems, and values are currently synced without any conversion.

  • Attendees mapped to From or Call From fields in Dynamics 365 must include only one party; otherwise, the activity sync will fail.

    Number of participants and total engagement effort.

Activity Sync Between Gainsight and Dynamics 365

A sample activity shown below is logged to the Timeline. Once a Timeline activity is saved or updated in Gainsight, it is synced to Dynamics 365.

Sample timeline activity.

The activity is synced to Dynamic 365, with the field values synced from Gainsight.

Timeline activity sync to D365.

Dynamic Activities in Gainsight and Sync Status

You can use the Activity Timeline object to gain insights into the sync status between Gainsight and Dynamics 365, and to identify the Activity ID in Dynamics 365

To see the sync status, in the Show Me section of Reports, add the following:

  • Activity Id

  • Dynamic Activity ID field to identify the activity ID created in Dynamics 365.

  • GS to Dynamics Sync Status field to check the synchronization status.

Activity timeline object with two new fields.

Note

  • If the Dynamics Activity ID is populated and the GS to Dynamics Sync Status is null, it indicates that the activity was synced from Dynamics 365 to Gainsight.

  • If the GS to Dynamics Sync Status field shows Success or Failed, it reflects whether the activity created in Gainsight was successfully synced back to Dynamics 365.

Error Handling and Log Review

Admins can view error logs for failed syncs between Timeline and Dynamics 365 using the Gainsight Error Logs object in Reports.
Perform the steps below to review the error logs in reports:

  1. Navigate to Insights > Reports.

  2. Click Create Report.

  3. From the Select Object dropdown list, select Gainsight Error Logs object.

  4. In the Show Me section, add fields like Area Name, Entity ID, Entity Type, Message, Exception Type and Name.

    Reports page with added object and fields.

  5. Click Add Filter on Fields and filter Exception Type by GS_D365_ACTIVITY_SYNC_ERROR to view the list of sync errors.

    Add Filter on Fields and filter Exception Type.

  6. Click Run Report.

    Error message in Message column of reports.

The error logs are shown in the Message column.

Below are the description of fields on Report page:

  • Entity ID: Displays the Dynamics External ID in the activity logs and reports for reference.

  • Entity Type: Indicates the entity as Activity.

  • Area Name: ANT (Activity and Timeline).

  • Last Modified Date: Defines the range of activities you want to view.

Note:

  • If the Gainsight activity owner does not exist as a user in Dynamics 365, the activity is not created in Dynamics 365.

  • If the activity type is updated for an existing activity, the sync currently fails because the original activity type already exists.

Common Activity Sync Failure Scenarios and Exceptions

The following scenarios may result in exceptions or failures during activity sync between Gainsight and Dynamics 365:

  • The Gainsight account associated with the activity is not found in Dynamics 365.

  • The activity owner is not found as a user in Dynamics 365. This may also occur if the party ID has not been synced from Dynamics 365 to Gainsight for the user.

  • One or more internal or external attendees are not found as users in Dynamics 365.

  • The activity type is updated in Gainsight and mapped to a different object in Dynamics 365. In this case, sync fails because the activity ID already exists in the original object.

  • Custom dropdown values (example: Activity Reasons, Activity Reason Details) do not match or exist in Dynamics 365.

  • More than one attendee is mapped to a field that accepts only a single participant (example, From or Call From in Email and Phone Call objects).

  • For any other system errors, the following message may appear: An unknown error occurred. Try again later. If the issue persists, contact your Gainsight Administrator for further assistance.

Manual Sync For Failed Activities

For activities that failed to sync to Dynamics 365, you can use the Run Manual Sync option to retry the sync process.

Gainsight recommends reviewing the error logs in Reports and addressing the issues before attempting a manual resync.
Once the errors are addressed, perform the steps below to run manual sync:

  1. Navigate to Administration > Timeline > Activity Sync.

  2. From the Manual Sync for Failed Activities section, click Run Manual Sync. The Run Manual Sync dialog box appears.
    Note: You can sync failed activities for a certain time range using the Last Modified Date of the activity

    Manual Sync for Failed Activities section, click Run Manual Sync.

  3. From the Operator dropdown list, select an operator (equals or between).

    Option in operator.

    • If the Operator is set to equals, choose a value from the dropdown list.

    • If the Operator is set to between, select the custom dates for which you want to perform the resync and click Apply.

      Operator is set to between, and the custom dates are selected to perform the resync

  4. Click Run Sync.

    Run Sync option in the dialog box.jpg

Delete an Activity

When an activity is deleted in Gainsight, the deletion is also synced to Dynamics 365, which means the activity is removed from D365. However, when an activity is deleted in Dynamics 365, the ingestion sync through the connector does not delete the corresponding activity in Gainsight.

Restore a Deleted Activity

As an admin, you can restore deleted Timeline activities to re-establish sync between Gainsight and Dynamics 365. To restore an activity:

  1. Navigate to Administration > Recycle Bin.

  2. Select the checkbox next to the activity you want to restore.

  3. Click Restore. A confirmation dialog box appears.

    Restore Option in recycle bin.jpg

  4. Click Restore to confirm. The status is changed to In Progress
    In Progress status in recycle bin when restoring.Once the activity is restored, the status is updated to Completed. The restored activity resumes syncing with Dynamics 365.

    The status is updated to  Completed.