Enable Activity Linking to the Marketing Cycle
By default, when a user creates a CT CPG Activity record with the Visit record type, it will be automatically linked to the Marketing Cycle record if:
-
the Start Date of the CT CPG Activity record is within the Marketing Cycle period;
-
the User and Marketing Cycle records are assigned to the same division;
-
the Marketing Cycle record is related to the specific record type of the CT CPG Activity record according to the Marketing Cycle Linking Setting;
-
the Marketing Cycle record is active.
Enable automatic linking for other CT CPG Activity record types:
-
Create a checkbox on the Marketing Cycle object and add it to the page layout. This field will be used to set up automatically linking the CT CPG Activity record of the specific record type with the marketing cycle.
-
Create a record of Marketing Cycle Linking Settings to allow automatic linking.
Create the Activity Link field on the Marketing Cycle object
Create a checkbox on the Marketing Cycle object:
-
Go to Setup → Object Manager → Marketing Cycle → Fields & Relationships → click New.
-
Create a field with the Checkbox type:
-
Select Checkbox and click Next.
-
In Field Label, enter the label, for example,
Link Event. -
Select the profiles to which you want to grant edit access to this field and click Next.
-
Select the page layouts that should include this field and click Save.
-
The field is created.
Add the Activity Link field to the Page Layout
To add the created Activity Link field to the Marketing Cycle page layout:
-
Go to Setup → Object Manager → Marketing Cycle → Page Layouts → Marketing Cycle Layout.
-
Drag-n-drop the created Link Activity field, for example,
Link Event, on the page layout. -
Click Save.
The field is now available on the Marketing Cycle object.
Create a record of Marketing Cycle Linking Settings
To enable the automatic linking:
-
Go to Setup → Custom Code → Custom Settings → Marketing Cycle Linking Settings → click New.
-
Fill Marketing Cycle Linking Settings Information.
-
Enter Name, for example,
Event. -
In the Field API Name field, enter the API name of the Activity Link field.
-
Select Active.
-
-
Click Save.
The new activity linking is enabled on the Marketing Cycle record.