TPM_RTRPromoTypeFilter_AMS
Sample of the TPM_RTRPromoTypeFilter_AMS class.
-
Query the custom metadata record based on the parameter, and then perform workarounds for the test classes.
-
From the custom metadata record, split the value of the
Promo_Types__cfield into individual values and then parse them into a new list type called groups. -
Create a new list that you can later use to store the value of
results = List<Map<String, Object>>. You can also query promotion templates into another active list that has the same sales org as the user and whose name matches the values in the Groups list type. -
Return the result.