Activating Link Control
You can easily activate link control directly from a declarative publication or subscription. If you activate link control from a publication, Foundations sets up links for the publication and the relevant subscriptions on the same message type. If you activate link control from a subscription, Foundations sets up links for the subscription and the relevant publications on the same message type.
Prerequisites
Consider the following information before activating link control for a publication or subscription.
Custom Link Control Developer Names
Before you activate link control, you can create unique link control developer names on publications and subscriptions manually. If the fields are blank, Foundations generates these values automatically using the following information:
- The first three letters of the developer name of the associated registered product
- The relevant source or target object name
- A numerical increment, if necessary, to ensure the name is unique
For example, an automatically generated link control developer name for a Foundations billing document publication could be ERPBil, a second publication for the same object could be ERPBil1.
Child Mappings
It is possible to set up link control for child record mappings. To populate link control fields on child source records, you must create child mappings using specific record creation methods. Foundations only populates link control fields on child source records when the child mapping contains one of the following record creation methods:
- Update Matching
- Update Matching and Delete
This applies to all child mappings in the subscription hierarchy that contain a target child type of Default. For more information about target child types, see Splitting Source Data into Multiple Target Records.
Foundations always populates link control fields on child target records, regardless of the record creation method.
Permissions to Activate Link Control
To activate link control in Foundations, you must be assigned the FDN Core - Administrator permission set and one of the following profiles:
- Salesforce System Administrator
- A custom profile that contains the Modify Metadata and Customize Application system permissions
For more information about assigning permissions, see the Salesforce Help.
Remote Site Settings
If you do not have My Domain set up in your org, you must register the following URL as a trusted remote site in Remote Site Settings: https://YourInstance
.salesforce.com (where YourInstance
your org's Salesforce instance, such as NA9).
For more information about remote site settings, see the Salesforce Help.
Activate Link Control
To activate link control:
- Click the Message Types tab in the Foundations Administration app.
- Click the name of the message type that contains the relevant publications and subscriptions.
- Click the Publications or Subscriptions link to see a list of related records.
- From the Publications or Subscriptions list view, click the name of the publication or subscription for which you want to activate link control.
- Click Activate Link Control. A summary of the link control fields that will be created is displayed. Review this information and make a note of the field API names for future reference.
- To continue, click Confirm. Link control mapping details are visible when you view the messaging relationship or publications and subscriptions independently.
- Update the relevant page layouts on the source and target objects to include the new fields, as required.
- Update the relevant users' permissions to provide view access to these fields.
- [Optional] If you want to customize the information that is displayed, update the labels and help text for the new linking field. By default, the labels reference the source or target object name, as appropriate. Show more information.
The following table contains details of the link control fields that are created on the source and target objects when you activate link control.
Object Type
Field Name
Field Label
Description
Source and Target Objects
link_<Link Control Developer Name>_Id
Example: link_ERPBil_Id
<Source or Target Object Name>
Example:
Billing Document
Lookup to the related source or target record.
Source Object Only
link_<Link Control Developer Name>_State
Example: link_ERPBil_State
<Target Object Name> Status
Example:
Billing Document Status
Status of the process that updates the linked target record.
Source Object Only
link_<Link Control Developer Name>_Errors
Example: link_ERPBil_Errors
<Target Object Name> Errors
Example:
Billing Document Errors
Details of errors that occurred when updating the linked target record.
For more information about updating page layouts, editing field labels, and assigning permissions to users, see the Salesforce Help.
Updating Publications or Subscriptions
If you create a new publication or subscription after you have activated link control, you must activate link control for the new records.
Making the following changes to publications or subscriptions can affect link control:
- Editing source or target objects
- Updating child mappings
- Editing link control developer names
If you make any of these changes after you have activated link control, click Activate Link Control to update the link control items. Ensure you update the relevant permissions and page layouts to include any new linking fields.