TPM_RTRPromoTypeFilter_AMS

Sample of the TPM_RTRPromoTypeFilter_AMS class.

  1. Query the custom metadata record based on the parameter, and then perform workarounds for the test classes.

  2. From the custom metadata record, split the value of the Promo_Types__c field into individual values and then parse them into a new list type called groups.

  3. 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.

  4. Return the result.