--- title: "Post Quote Creation" slug: "post-quote-creation" description: "Details about the Post Quote Creation extension point in Zilliant CPQ Groovy scripts." tags: ["Groovy script", "Zilliant CPQ application", "Extension point"] updated: 2026-06-02T13:25:18Z published: 2026-06-02T13:25:18Z canonical: "docs.zilliant.com/post-quote-creation" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.zilliant.com/llms.txt > Use this file to discover all available pages before exploring further. # Post Quote Creation ## Purpose Allows you to run a script when users create a [quote](/v1/docs/manage-quotes#create-quotes) or an [agreement](/v1/docs/create-agreements-1), to set default values for specified fields. ## Setup Upload the script for **Post Quote Creation**. For details about uploading and configuring Groovy scripts, read [Upload a Groovy script](/v1/docs/upload-a-groovy-script). ## Binding variables In addition to the [common binding variables](/v1/docs/binding-variables), the following binding variables are available for this extension point. | Variable name | Class | Description | | --- | --- | --- | | salesItemsTree | SalesItemsTree | Represents the quote or Quote object associated with the agreement under negotiation. It contains the functions you can use to query and modify the quote or agreement and its line item data. | | accountInfo | AccountInfo | Basic data about the account, including its address data. | | userInfoList | Set | List of all users in the system. | | sourceQuotePFRecords | Set | List of partner function records in the quote or agreement. If the script is triggered due to the quote copy action, this variable is populated with information about the partner functions of the source quote or agreement. | | accountPFRecords | List | List of partner function records for the account of the quote or agreement. | For details about the classes listed in this table, including available methods, fields, and method signatures, read the [Zilliant Groovy API reference](/main/docs/groovy-api-reference). ### Method for detecting quote copy Use the `SalesItemsTree.isQuoteCopy()` method in your script to detect whether the current quote or agreement was created by using the copy action. This method returns a Boolean value: - `true` if the current workflow is a quote or agreement copy - `false` if the quote or agreement was created in another way This method is useful when your script must handle copied quotes differently from newly created quotes. For example, when a quote is copied, you may want to reset selected business-specific values, keep only some values from the source quote, or apply different initialization logic at the header or line-item level.