How to Update and Save Header of Approved Quotes

If you work with the Quoting module in Salesforce and you need to update the Opportunity information in the header of an approved Quote in the Deal status, you can configure it this way:

  1. All fields that you intend to be updatable after the Quote is approved must be set as alwaysEditable. When you save the Quote, only updates to alwaysEditable fields are saved. The Quote logic is run.
    For example, you can set only Opportunity Name as alwaysEditable. The code in the Quote header logic will look like this:

    quoteProcessor.addOrUpdateInput( "ROOT", ["name": "OpportunityName", "label": "Opportunity Name", "type" : InputType.STRINGUSERENTRY, "readOnly": api.global.isOpportunity, "required": false, "parameterGroup": "Opportunity and Project Information", "alwaysEditable": true ] )

     

  2. With old Quoting enabled (Ember):
    On the Feature Flags page in the quoteButtonsConfiguration section enable the following flags:

    • showAssignOpportunityOnApproved

    • showSaveButtonOnApproved (from version 6.0, this flag is no longer available but the Show button will be visible if there are always-editable fields)

  3. With new Quoting enabled (React):
    Modified inputs with the alwaysEditable flag are stored automatically. By default, the calculation is also run automatically. If this behavior is not suitable, configure recalculateQuoteOnAlwaysEditableChangeInWorkflowStatuses appropriately as described in https://pricefx.atlassian.net/wiki/spaces/LEARN/pages/2827485214.

 In the same way (setting fields as alwaysEditable) you can update approved Agreements/Promotions, Rebate Agreements or Sales Compensations. Note that if the user has the DataIntegration user role assigned, this functionality may not work correctly.

Found an issue in documentation? Write to us.

Â