Welcome to Zuora Product Documentation

Explore our rich library of product information

Quote mutation helpers

Helpers for updating quote fields by dispatching CustomEvent calls.

updateQuote(patch)

Signature:

updateQuote(patch?: object): CustomEvent

Parameter

Type

Required

Description

patchobjectNoQuote field updates. Use exact field API names.

Returns:

  • CustomEvent('updatequote')

Example:

this.dispatchEvent(
    zqf.updateQuote({
        Name: 'Updated Quote Name',
        zqu__Billing_Region__c: 'EMEA'
    })
);

updateQuoteField(fieldName, value)

Signature:

updateQuoteField(fieldName: string, value: any): CustomEvent

Parameter

Type

Required

Description

fieldName string Yes Exact quote field API name.
value any Yes Value to assign.

Example:

this.dispatchEvent(
    zqf.updateQuoteField('zqu__Billing_Region__c', 'EMEA')
);