Adding Mappings to a Messaging Relationship

You can add a custom mapping that contains a unique target field, or for child relationship mappings, a unique target field and target child type. If a managed mapping exists with the same information, the custom mapping overrides it. From Winter 2022, the combination of these fields and the mapping condition must be unique.

Note:

We recommend that you do not create mappings for fields that are specified as an identifier reference on the target:

To add mappings to a relationship:

  1. On the Message Types tab, click the name of the message type that contains the relationship you want to customize. The message type is displayed.
  2. In the Relationship & Mapping Details section, click Manage Relationship and select the publication and subscription that make up the relationship.
  3. Complete one of the following steps:
    • Add a top-level mapping, click Add Mapping.
    • Add a mapping to an existing child relationship, click in the child relationship row and click Add Child Mapping.
  4. Specify the key that identifies the data you want to send. Keys are unique within their section of the mapping hierarchy. If a key already exists with the same name, a number is appended to the new key when you save, for example, (1).
  5. Select a source type to define the type of data being published and complete the relevant steps.
  6. [Available from Winter 2022 Only. Optional and Not Available for Child Relationship Target Types] Specify a condition field to apply a mapping to the target in specific circumstances. If specified, the message value for the condition field must evaluate to true for the mapping to be applied to the target.
    You can select any checkbox or formula field of type checkbox that exists on the source object.
    Leave this field blank to always apply the mapping to the target.
  7. Select an appropriate target type based on the source type you selected.
    Note:

    You can only select targets that you have permission to edit.

  8. [For Child Mappings Only] Select a target child type or enter the name of a new target child type. If blank, the mapping is assigned the Default target child type.
    For more information about target child types, see Splitting Source Data into Multiple Target Records.
  9. Click Save to save the mapping or Save & New to save the mapping and create a new mapping.

Additional Actions

You can now decide whether you want to activate link control for the publication and subscription in your messaging relationship. For more information, see Link Control Overview.

You can also add filters to your subscriptions so that they only receive information when specific criteria is met. For more information, see Adding Filters to Subscriptions.

Next Steps

When you have completed the optional steps above, you must specify when to send messages for the relationship. For more information, see Enabling a Messaging Relationship.