LoyaltyProgramSetup
Represents the configuration of a loyalty program process including its parameters and rules. Program processes determine how new transaction journals are processed. When new transaction journals meet the criteria and conditions for a program process, actions that are set up in the process are triggered for the transaction journals.
Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.
This type extends Metadata and inherits its fields.
LoyaltyProgramSetup components have the suffix loyaltyProgramSetup and are stored in the loyaltyProgramSetups folder.
Introduced in API version 54.0.
LoyaltyProgramSetup components are available in API version 54.0 and later for Loyalty Management and in API version 59.0 and later for Referral Marketing.
To use this metadata type, your org must have either B2C - Loyalty, B2C - Loyalty Plus, Loyalty Management - Growth, Loyalty Management - Advanced, or Referral Marketing license enabled.
- Type: string
- Required: No
- Description: Name of the loyalty program that the program process is associated with. If a loyalty program or referral program with the specified name doesn’t exist, a new LoyaltyProgram record is created. The name of a program must contain at least one alphanumeric character.
- Type: LoyaltyProgramProcess[]
- Required: No
- Description: Collection of loyalty program processes associated with a loyalty program or a referral program.
Represents a collection of fields relating to a loyalty program process.
- Type: string
- Required: No
- Description: The description of the loyalty program process.
- Type: LoyaltyPgmProcExecutionType (enumeration of type string)
- Required: No
- Description: The mode of processing transaction journals by the loyalty program process.
- Possible values:
- Batch
- BatchAndRealTime
- RealTime
- Type: string
- Required: No
- Description: The subtype of transaction journals processed by the loyalty program process.
-
Type: string (enumeration of type string)
-
Required: No
-
Description: The type of transaction journal processed by the loyalty program process.
Possible values for loyalty program:
Possible value for referral program:
-
Possible values:
- Accrual
- Redemption
- Referral
- Type: string
- Required: No
- Introduced: API version 56.0
- Description: The tier group of a loyalty program. This field isn’t applicable for referral programs.
- Type: LoyaltyProgramProcessParameter[]
- Required: No
- Description: The parameters associated with the loyalty program process.
-
Type: string
-
Required: Yes
-
Description: Required.
The name of the loyalty program process.
-
Type: string
-
Required: Yes
-
Description: Required.
The type of records processed by the loyalty program process. For referral programs, the process type is
TransactionJournal.
- Type: LoyaltyProgramProcessRule[]
- Required: No
- Description: The rules associated with the loyalty program process.
- Type: LoyaltyPgmProcStatus (enumeration of type string)
- Required: No
- Description: The status of the loyalty program process.
- Possible values:
- Active
- Draft
- Inactive
Only active program processes can process transaction journals.
Represents a collection of fields relating to an action.
- Type: string
- Required: Yes
- Description: Required.
- Type: LoyaltyProgramProcessActionParameter[]
- Required: No
- Description: The parameters of the action.
- Type: LoyaltyPgmProcActionType (enumeration of type string)
- Required: Yes
- Description: Required.
- Type: LoyaltyPgmProcCrudActType (enumeration of type string)
- Required: No
- Description: The type of operation to perform on target object records by the action. This field is available from API version 56.0 and later.
- Possible values:
- create
- update
This field is required when the actionType field value is CRUD .
- Type: string
- Required: No
- Description: The decision that’s invoked by the action for the transaction journal that’s processed by the rule.
- Type: string
- Required: No
- Description: The dataset link associated with the selected decision table.
- Type: string
- Required: No
- Description: The API name of the target object. This field is available from API version 56.0 and later.
This field is required when the actionType field value is CRUD .
- Type: string
- Required: No
- Description: The flow that’s run by the action for the transaction journal that’s processed by the rule. The selected flow must be of the type LoyaltyManagementFlow.
- Type: string
- Required: No
- Description: The subprogram processes that’s run by the action. This field is available from API version 56.0 and later.
This field is required when the actionType field value is RunProgramProcess .
Represents a collection of fields relating to an action parameter. A parameter is either an input or an output for the action. Input parameters store the values used by the action. Output parameters store the result of the action.
- Type: LoyaltyPgmProcActParamOper (enumeration of type string)
- Required: No
- Introduced: API version 56.0
- Description: The type of operator used in the action. Possible value is:
- Possible values:
- Equals
-
Type: string
-
Required: Yes
-
Description: Required.
The name of parameter. The parameter name must be the same as the input or the output field that’s supported depending on the associated action’s type.
- Type: int
- Required: No
- Introduced: API version 56.0
- Description: The sequence number of the parameter in the action.
- Type: string
- Required: Yes
- Description: Required.
- Type: LoyaltyPgmProcActParamType (enumeration of type string)
- Required: No
- Introduced: API version 56.0
- Description: The type of value to provide in the parameter.
- Possible values:
- Literal — A constant value.
- Parameter — A runtime value passed using a parameter.
Represents a collection of fields relating to a condition. Conditions filter records that parameters store or check whether child actions must be triggered for a transaction journal.
-
Type: string
-
Required: No
-
Description: Required.
The criteria that determine when the condition is met by a record or by a transaction journal.
- Type: LoyaltyProgramProcessConditionFilterCriteria[]
- Required: No
- Description: The filter criteria that determines which records or transaction journals are filtered.
-
Type: string
-
Required: Yes
-
Description: Required.
The name of the condition.
- Type: LoyaltyPgmProcRuleType (enumeration of type string)
- Required: No
- Description: Specifies the type of condition in the loyalty program process.
Represents a collection of fields relating to a filter criteria that’s part of a condition. Multiple filter criteria can be added for a condition. Filter criteria determine which records are filtered by related condition.
-
Type: LoyaltyPgmProcCondOperator (enumeration of type string)
-
Required: Yes
-
Description: Required.
The operator of the filter criteria.
-
Possible values:
- Contains
- DoesNotContain
- Equals
- GreaterThan
- GreaterThanOrEquals
- IsNotNull
- IsNull
- LessThan
- LessThanOrEquals
- NotEquals
-
Type: int
-
Required: Yes
-
Description: Required.
The sequence number of the filter criteria within a condition.
-
Type: string
-
Required: Yes
-
Description: Required.
The name of the field used in the filter criteria.
- Type: string
- Required: No
- Description: The value of the filter criteria.
-
Type: LoyaltyPgmProcCondType (enumeration of type string)
-
Required: Yes
-
Description: Required.
The type of value specified in the filter criteria.
-
Possible values:
- Formula
- Literal
- Lookup
- Parameter
Represents a collection of fields relating to a parameter that’s associated with the program process. Parameters are dynamic or fixed values that are used in rule. You can define the value of a parameter based on its type and data type.
- Type: LoyaltyProgramProcessCondition
- Required: No
- Description: The filter condition that decides which records are stored in the parameter.
- Type: LoyaltyPgmProcParmDataType (enumeration of type string)
- Required: No
- Description: The data type of the parameter. Determines the type of value that can be stored in the parameter.
- Possible values:
- Boolean
- Date
- DateTime
- Numeric
- Sobject
- Text
- Type: int
- Required: No
- Description: The number of decimal places supported by the parameter when it is of the type Variable and data type Numeric.
- Type: string
- Required: No
- Description: The description of the parameter.
- Type: boolean
- Required: No
- Description: Indicates whether the parameter can store multiple values when it is of the type Variable.
- Type: boolean
- Required: No
- Description: Indicates whether a parameter can be used as an input outside the loyalty program process.
- Type: boolean
- Required: No
- Description: Indicates whether a parameter can be used as an output outside the loyalty program process.
- Type: string
- Required: No
- Description: Name of the object whose records are stored by the parameter when it is of the type Variable and data type sObject.
-
Type: string
-
Required: Yes
-
Description: Required.
The name of the parameter.
- Type: LoyaltyPgmProcParmType (enumeration of type string)
- Required: No
- Description: The type of value the parameter can store.
- Possible values:
- Constant
- Formula
- Variable
- Type: string
- Required: No
- Description: The value of the parameter when it is of the type Variable or Formula and isn’t of the data type sObject.
Represents a collection of fields relating to a rule. A rule consists of a set of conditions and actions.
- Type: LoyaltyProgramProcessAction[]
- Required: No
- Description: The actions associated with the rule.
- Type: LoyaltyProgramProcessCondition[]
- Required: No
- Description: The conditions associated with the rule.
- Type: string
- Required: No
- Description: The description of the rule.
- Type: date
- Required: No
- Description: The date until which the rule processes transaction journals.
- Type: boolean
- Required: No
- Description: Indicates whether the rule is used to determine eligibility for processing the loyalty program process (
true) or not (false). When set totrue, the rule is evaluated as a process eligibility rule. When set tofalse, the rule is evaluated as a standard program process rule.
- Type: string
- Required: No
- Description: The rule that processes new transaction journals before the current rule. The current rule is triggered when the previous rule completes processing transaction journals.
- Type: string
- Required: No
- Description: The promotion associated with the rule. When a promotion is associated with a rule, the start date, end date, and status of the promotion determines the corresponding fields of the rule.
-
Type: string
-
Required: Yes
-
Description: Required.
The name of the rule.
- Type: date
- Required: No
- Description: The date from which the rule starts processing transaction journals.
- Type: LoyaltyPgmProcRuleStatus (enumeration of type string)
- Required: No
- Description: The status of the rule.
- Possible values:
- Active
- Draft
- Inactive
- Type: LoyaltyProgramProcessRuleStepMapping[]
- Required: No
- Description: The list of step mappings associated with rule.
Represents a collection of fields relating to a step mapping. Map conditions with child actions or map an action without a parent step.
-
Type: string
-
Required: Yes
-
Description: Required.
The action that’s associated with the mapping.
- Type: string
- Required: No
- Description: The condition that contains one or more child actions.
-
Type: int
-
Required: Yes
-
Description: Required.
The sequence number of the mapping within a rule.
The following is an example of a LoyaltyProgramSetup component.
The following is an example package.xml that references the previous definition.
To retrieve metadata specific to any loyalty program, mention the loyalty program name in the
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.