Zuora Staff

Re: Programmatically Update effective price

Hello,

 

For some context, what kind of Quotes are you cloning? Can you provide some information on the reason for the customization?

 

If you are cloning a New Subscription Quote, you should be able to use the "cloneQuote(...)" method described in the Knowledge Center for our Quote global class:

https://knowledgecenter.zuora.com/CA_Commerce/I_Development_Resources/C_Component_Library/C_Global_C...

 

Note that the above method allows you to automatically clone Products in addition to the Quote (for New Subscription only).

 

You should be able to use other methods in the same "Quote" global class above to handle adding/removing/updating products on the Quote.

 

Note if you are cloning Quotes that are not New Subscription, you will need to update various IDs to tie the Quote to the proper Zuora objects.