Happy Business Starts Here

Zuora Support

How to add rate plans to a quote using CPQ X ?

 





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
Zuora Support

Re: How to add rate plans to a quote using CPQ X ?

Please use below sample code to add and save rate plans to a Quote using CPQ X

 

// Replace the Quote ID with the newly created quote ID
String quoteId = 'a1G0I000001ZjLIUA0';'
// Replace the ID with the Poduct rate plan ID in your Org
List<Id> productRatePlanIds = new List<Id>{'a0z0I0000092q6k'};
    List<zqu.QPlan> plans = zqu.QPlanBuilder.makeFromCatalog(quoteId, productRatePlanIds);

zqu.QPlanWriter.save(plans);

please refer below Knowlege Articles for more information on using CPX classes.

QPlanBuilder_Class and QPlanWriter_Class 






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

Tags (2)