Skip to main content
La Trailblazer Community su Slack è ora in beta aperta: unisciti e connettiti in tempo reale. Unisciti a noi su Slack

Customize and Add Graph Nodes

Learning Objectives

After completing this unit, you'll be able to:

  • Add child nodes to an ARC relationship graph.
  • Configure each node's properties, display, and actions.

Add Nodes to Your Graph

In the previous unit, you built the Commercial Account Opportunities graph from scratch, so it currently has only an Account root node.

In this unit, you add child nodes and configure each one's properties, display fields, and actions to match Cumulus Bank’s requirements.

Note

If you had started from a graph template, several other nodes would exist with display and action settings. In that situation, you select an existing node and adjust it rather than adding it from scratch, but the Properties, Display, and Actions settings you configure are the same.

Add an Opportunity Node

First, add an Opportunity node to the graph. Cumulus users want to know a customer’s open opportunities with the bank, including stage, probability, and amount. They also want quick access to edit and create opportunities.

The Opportunity object has a direct lookup to Account, so you connect the two with a one-to-many relationship. Why? Just one account can directly relate to many opportunities.

  1. Open the Commercial Account Opportunities graph you created in the previous unit.
  2. Under the Account root node, select Add.
  3. Specify these details on the new node’s Properties tab.
    • Object: Opportunity
    • Relationship Type: One-to-Many
    • Parent Node Lookup Field: Account Name
    • Sort By: Stage Ascending
  4. Save your work.

The properties tab of the Account root node, with configuration set to Use as Default.

In this one-to-many relationship, Parent Node Lookup Field is the field on the node object that connects it to the parent node. The Account Name field on Opportunity points to the parent node object, Account.

The Sort By field helps you organize many child node cards under the same parent. In this case, Stage Ascending sets the sort order of records to show the earliest-stage opportunities first. Optionally, you can also select Filters and limit which records are shown, such as filtering out closed opportunities so they don’t show. We won’t do that in this badge.

Now customize the node’s Display tab to show users the most relevant fields.

  1. With the Opportunities node selected, select the Display tab, and specify these details.
    • Label: Opportunities
    • Show Field: Stage, Amount, and Probability (%)
  2. Save your work.

The customization options on the display tab of the opportunities node.

Finally, to select the actions users can take directly from the ARC graph, customize the Actions tab on the node.

  1. Select the Actions tab.
  2. In Object Actions, for Action, select New.
  3. In Record Actions, for Action Label, enter Opportunity Actions.
  4. In Action, select Edit.
  5. Save your work.

Cumulus bankers can now quickly review and edit opportunities related to an account.

Add a Contact Node with a Many-to-Many Relationship Type

Cumulus bankers also want to review the contacts related to each account. Next, add a Contact node under the root accounts node, connecting the nodes using the Account Contact Relationship junction object.

  1. Under the Account root node, select Add.
  2. On the Properties tab, specify these details.
    • Object: Contact
    • Relationship Type: Many-to-Many
    • Junction Object: Account Contact Relationship
    • Parent Node Lookup Field: Account
    • Object Lookup Field: Contact
    • Sort By: Name Ascending
  3. Save your work.

Because you’re connecting Account and Contact with a junction object, you use the many-to-many relationship type. A many-to-many relationship links multiple records of one object to multiple records of another object. For example, your Trailhead playground org uses the Account Contact Relationship object to represent a relationship between an account and a contact or person account, such as a relationship between a company and one of its employees.

Here’s what each field does in a many-to-many relationship type.

  • Junction Object specifies the object that connects two node objects.
  • Parent Node Lookup Field sets the field on the junction object that relates to the parent node object.
  • Object Lookup Field specifies the field on the junction object that relates to the child node object.

These principles apply to any junction object, such as the Financial Account Party object in Financial Services Cloud, which is a junction object between Financial Account and Account.

Next, configure the display settings.

  1. Select the Display tab.
  2. For Label, enter Contacts.
  3. In the Card Information section, customize the card fields for your bankers.
    • Select Customize field labels.
    • In Show Field, select Junction Object at the end of the list, then Roles.
    • In the related Field Label text box, enter Role.
    • In the next Show Field field, select Email.
    • In the related Field Label text box, enter Email.
    • In the next Show Field, select Title.
    • In the related Field Label text box, enter Title.
  4. Save your work.

Configured options in the Display tab.

Notice that you can select fields to show from junction objects, as well. The Role field on the Account Contact Relationship object is helpful for Cumulus users, and you’re able to select that or any other field on the object to show on the node.

Finally, configure this node’s actions.

  1. Select the Actions tab and set these values.
    • In Object Actions, for Action, select New Contact.
    • In Record Actions, for Action Label, enter Contact Actions.
    • For Actions in the Record Actions section, select Edit and Delete.
    • In Junction Actions, for Action Label, enter Relationship Actions.
    • For Actions in the Junction Actions section, select Edit Relationship and Remove Relationship.
  2. Save your work.

Because this node uses both the child object and a junction object, you can act on both.

Configure the related accounts node actions on the Actions tab.

The Object Actions and Record Actions sections configure actions you take on the node’s object, which is Contact on this node. The Junction Actions section specifies the actions that you can take on the junction object, which is Account Contact Relationship on this node.

With this node complete, you have just one more node to configure.

Finally, add a node that shows accounts related to the client account, such as subsidiaries or suppliers.

  1. Under the Account root node, select Add.
  2. Specify these details on the Properties tab.
    • Object: Account
    • Relationship Type: Many-to-Many
    • Junction Object: Account Account Relationship
    • Parent Node Lookup Field: Account
    • Object Lookup Field: Related Account
    • Sort By: Account Name Ascending
    • Node Configuration: Linked
  3. Save your work.

For this node, you selected the Linked node configuration. This Account node now inherits the same relationship settings as the default account node. In this graph, the default account node is the root node, meaning that this accounts node automatically inherits relationships to its child Opportunity, Contact, and Account nodes.

To indicate this setting in the Graph Builder, the node shows how many relationships it inherits.

The Related Accounts node shows that it has three inherited relationships.

With the Linked setting, you easily meet the requirements of showing opportunities, contacts, and accounts for the child account node without recreating the same nodes.

Next, configure the fields to show on the node.

  1. Select the Display tab.
  2. In Label, enter Related Accounts.
  3. In the Card Information section, customize the card fields for your bankers.
    • Select Customize field labels.
    • For the first Show Field field, select Phone.
    • In the related Field Label text box, enter Phone.
    • For the second Show Field field, select Billing Address.
    • In the related Field Label text box, enter Address.
  4. Save your work.

Finally, configure the actions for this node.

  1. Select the Actions tab and set these values.
    • In Object Actions, select New.
    • In Record Actions, for Action Label, enter Account Actions.
    • Add the Edit and Call actions.
    • In Junction Actions, for Action Label, enter Relationship Actions.
    • Add the Edit and Delete actions.
  2. Save your work.

Your related accounts node is complete, and so is your ARC graph.

What’s Next?

In this unit, you added and configured child nodes on the ARC graph. Bankers at Cumulus can now determine a client's business needs quickly. That is, if they could view the graph.

In the next unit, you add the graph to a record page and explore how to use it.

Resources

Condividi il tuo feedback su Trailhead dalla Guida di Salesforce.

Conoscere la tua esperienza su Trailhead è importante per noi. Ora puoi accedere al modulo per l'invio di feedback in qualsiasi momento dal sito della Guida di Salesforce.

Scopri di più Continua a condividere il tuo feedback