Represents a price book that contains the list of products that your organization sells.
create(), update(), delete(), query(), retrieve(), getDeleted(), getUpdated(), describeSObjects()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| Description | string | Create | Text description of this object. |
| IsActive | boolean | Create | Indicates whether this object is active (true) or not (false). Inactive objects are hidden in many areas in the Salesforce user interface. You can change this field’s value as often as necessary. Label is Active. |
| IsDeleted | boolean | Defaulted on create |
Indicates whether the record has been moved to the Recycle Bin (true) or not (false). Label is Deleted. |
| IsStandard | boolean | Defaulted on create | Indicates whether this object is the standard price book for the organization (true) or not (false). Every organization has one standard price book—all other price books are custom price books. |
| Name | string | Create | Required. Name of this object. This field is read-only for the standard price book. Label is Price Book Name. |
A price book is a list of products that your organization sells:
Use this object to query() information about standard and custom price books that have been configured for your organization. A common use of this object is to allow your client application to obtain valid Pricebook2 object IDs for use when configuring PricebookEntry objects via the API.
Your client application can perform the following tasks on PricebookEntry objects:
In the API:
These objects are defined only for those organizations that have products enabled as a feature. If the organization does not have the products feature enabled, the Pricebook2 object does not appear in the describeGlobal() call, and you cannot access it via the API.
If you delete a Pricebook2, while a line item references PricebookEntry in the price book, the line item is unaffected, but the Pricebook2 will be archived and unavailable from the API.
For a visual diagram of the relationships between Pricebook2 and other objects, see Product and Schedule Objects.
The process of setting up a price book via the API usually means: