---
schema_version: "1"
id: 5138a6e74e3a6bdb9f0b969d05f7faab0c2e46c7ebf4e249febdff1e0b75859d
title: Context Definition Customizations to Display Custom Promotion Information to Customers
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/global_promotions_management_setup_context_service_custom_promotion_fields.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.global_promotions_management_setup_context_service_custom_promotion_fields.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 088be5c111d15d2952bc372a3ff8dffdfdbc5918e1b16fc40600f8e88c55ddbd
description: If marketing managers want to display custom promotion information such as terms and conditions to customers, admins can customize the promotion's context definition to display information for custom promotion fields.
products:
  - Marketing
release: "264"
---
# Context Definition Customizations to Display Custom Promotion Information to Customers

If marketing managers want to display custom promotion information such as terms and conditions to customers, admins can customize the promotion's context definition to display information for custom promotion fields.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>,&nbsp;<strong>Unlimited</strong>, and&nbsp;<strong>Developer</strong>&nbsp;Editions with Real-Time Offer Management</td></tr></tbody></table>

## Displaying Custom Promotion Information to Customers

After the admin customizes a promotion's context definition to include custom promotion information, the Eligible Promotions API starts displaying the information from the custom promotion field in its response. When the API is executed to get the list of promotion's for a customer's cart, the custom information is displayed for each eligible promotion.

![Tip](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-real_time_offer_management-264-0-0-production-enus/9bd7649d-776f-43e6-b210-f781a48bbc79/images/icon_tip.png)

Tip Before admins extend a context definition, they must work with the marketing managers to decide which custom fields to add in the Eligible Promotions API's response.

## Customizing Context Definitions Created by Extending the CartDetailGetEligiblePromotion Context Definition

Promotion context definitions that are created by extending the standard CartDetailGetEligiblePromotion context definition contain a node named PromotionCustomField. Admins can add input type attributes to the PromotionCustomFields node and map the attributes to the custom Promotion object fields that store the information that marketing managers want to display to customers.

After admins create the attribute, they must:

- Add context tags in camel case for each attribute
- Use the standard MapCartValueLoyaltyObjectField mapping to map the attributes to their corresponding custom field on the Promotion object.

#### See Also

- [_Salesforce Help_: Extend Context Definition](https://help.salesforce.com/s/articleView?id=ind.context_service_extend_context_definitions.htm&type=5&language=en_US)
- [_Salesforce Help_: View, Edit, and Delete Saved Context Definitions](https://help.salesforce.com/s/articleView?id=ind.context_service_view_edit_saved_context_definitions.htm&type=5&language=en_US)
- [_Salesforce Help_: Add Context Mapping](https://help.salesforce.com/s/articleView?id=ind.context_service_add_context_mapping.htm&type=5&language=en_US)