The Lighting Component Campaign Items Related List has a couple of default settings defined which a technical administrator can change according to the following documentation.
...
Feature Name | Feature Setting Name | default value | ||
---|---|---|---|---|
CampaignItemRelatedList | SortByField |
|
...
Feature Name | Feature Setting Name | default value | ||
---|---|---|---|---|
CampaignItemRelatedList | TableFields |
|
...
Feature Name | Feature Setting Name | Default Filter Value | ||
---|---|---|---|---|
CampaignItemRelatedList | FilterButtons |
|
...
title: sets the text for the mouse over
label: is shown on the button and
customLabel: allows you to connect the button to a custom label to show different translations depending on your language
define the filter values. You can add multiple using brackets.
...
Feature Name | Feature Setting Name | Feature Setting Name | ||
---|---|---|---|---|
CampaignItemRelatedList | ActionButtons |
|
This entry in JSON format as an array of map objects is used to define the default action buttons, where we can define the
title,
label and
customLabel (to show different translations depending on your language)
action values.
The parameters must be defined as $mcid$ for the Media Campaign Id value and $recordIds$ for the selected items to use according the button choice. Currently ADvendio offers 12 buttons the same as the Salesforce Campaign Item default feature.
...
For Visualforce Pages:
Create your Visualforce Page with an Apex Controller and add it to the Feature Setting as described below. Replace “vfExamplePage“ with the name you applied for the page:
Add Button to Campaign Items:
Go to Feature Setting (ActionButtons → CampaignItemRelatedList) and edit it.
Add the value below: You can change “title” and “label” based on your needs:
Code Block { "title": "Example Page", "label": "Example VF", "action": "/apex/vfExamplePage?hello=$recordIds$", "type": "vf" }
Create your LWC and add it to the Feature Setting as described below. Replace “lwcExample“ with the name you applied for the page:
Add Button to Campaign Items:
Go to
Feature Setting
(ActionButtons → CampaignItemRelatedList) and edit it.Add the value below: You can change “title” and “label” based on your needs:
Code Block { "title": "Example LWC", "label": "Example LWC", "componentDefinition": { "componentDef": "Cc:lwcExample", "attributes": { "name": "$recordIds$" } }, "type": "lwc" }
...