Happy Business Starts Here

Highlighted
Support SME

How can I find out what charge type a discount charge is mapped/applied to in Salesforce?

Question: How can I find out what charge type a discount charge is mapped/applied to in Salesforce?






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Support SME

Re: How can I find out what charge type a discount charge is mapped/applied to in Salesforce?

Solution:

Following are the three checkbox fields that are present on zqu__ProductRatePlanCharge__c object in salesforce.

zqu__Apply_Discount_To_One_Time_Charges__c,zqu__Apply_Discount_To_Recurring_Charges__c,zqu__Apply_Discount_To_Usage_Charges__c

 

But these are not synched as part of Zuora Product Catalog sync.

There is a field zqu__Discount_Apply_Type__c, 

that  contains numbers 1,2,3,4,5,6,7  and  determines the type of charges the Discount is applied upon.

This code fragment shows the mapping of the number in database into the actual meaningful apply type:

NULL(0), ONETIME(1), RECURRING(2), USAGE(4), ONETIMERECURRING(3), ONETIMEUSAGE(5), RECURRINGUSAGE(6), ONETIMERECURRINGUSAGE(7);

Please see attached image.

 

 

 

Supporting references:

1) Sync field reference (https://knowledgecenter.zuora.com/CA_Commerce/B_Zuora_360/F_Synchronize_Your_Data/O_Field_Reference) that shows zquApply_Discount_To_One_Time_Chargesc,zquApply_Discount_To_Recurring_Chargesc,zquApply_Discount_To_Usage_Chargesc are not synched.

2) expected values of ApplyDiscountTo field in ProductRatePlanCharge object in Zuora

Please click the link below  for more info.

https://knowledgecenter.zuora.com/BC_Developers/SOAP_API/E1_SOAP_API_Object_Reference/ProductRatePla...






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Discount Apply To Field.PNG