This tutorial helps you understand how to create relationships automatically using the rules engine. In this scenario, we will create relationships for the different projects that are associated with an account. Each project may be managed by a different CSM or AM, and therefore, using Relationships helps your organization manage each project more effectively.

Assumptions

  • In this tutorial, we have a Project object that has a lookup to the Account object. We are automatically creating a relationship for each project of Abscoa Division, which is an account name.
  • Relationship Type Name: projects
  • Existing Account Name: Abscoa Division

Steps to Create Relationships

To create a relationship automatically for a project of an account:

1. Navigate to Administration > Rules Engine > + Rule.

93af6fc9-3571-4e1b-90a3-194910c9d926_display.png

2. Enter the following details:

  • Rule Type: select custom
  • Rule For: select Account
  • Rule Name: enter Create Relationships (or a name of your choosing)
  • (optional) Description: enter a description of the rule

3. Click Next.

0ff69838-f784-4b4b-965f-3510670d6079_display.png

4. Under Setup Rule, drag-and-drop the following fields in Show:

  • Project::Account
  • Project::Id
  • Project::Project Name

5. Under Filters, drag-and-drop the following field:

  • Project::Account Name field, whose value should be equal to Abscoa Division, which is an existing account name.

A relationship is automatically created for each project of Abscoa Division.

6. Click Next.

7. On the Setup Action page, under Action Type, select Load To Relationship; then select projects in Select a Relationship Type.

17655d26-5096-42a4-91cc-e90f3d5bda58_display.png

8. Under Field mappings, from the drop-down box select Account(string) and select Include in identifiers. Also, from the drop-down box select Project(string) and select Include in identifiers. This helps Gainsight understand if a new relationship should be created or if an existing relationship should be updated.

9. Click Save.

10. Click Run Now and then enter or select the following details:

  • Rule Date: enter current date.
  • Test Run: Select this if you want to perform a test run and check if you are getting the desired results.
  • Send a copy of Rule Result email to: enter email IDs to whom you want to send a copy of rule results. Optionally, select Include Gainsight support if our support team is helping you troubleshoot the rule.
afb2b294-a2e7-4c0d-8927-f58071ec396a_display.png

11. Click Run.

94f6392a-2db7-41bc-a014-9f44423fcfa8_display.png

12. Navigate to Customer 360 > Relationships to see the created relationship.

(Optional) Manually create Relationships 

After relationship types are configured, end users with the create permission can manualy create a new relationship entity for a specific customer from the C360, based on the defined relationship types.

b46d4e0b-0cd6-4559-9c12-1914eef58e09.png

End users can add relationships under an account from the Customer 360 > Relationships section.

  1. For a specific customer that you’d like to map to a relationship type, navigate to the Customer 360 Details view > Relationships section.
  2. Click Add to add the desired Relationship.
  3. Select the Relationship Type from the drop-down menu.
  4. Enter/customize the text in the Relationship Name field.
  5. Then click Save. It will take you to the detailed view for this relationship.

Once the relationship is mapped, then end users can see the Relationships card view in the Customer 360 > Relationships section. Click the Relationship name in the card view to access the Relationship 360 for that particular customer.