WebStorePricebook
Represents a store price book used in Lightning B2B Commerce.
Introduced in API version 46.0.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()
- This object is available only if the B2B Commerce license is enabled.
- Type: boolean
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Description: Determines whether the WebStorePricebook is active (
true) or not (false). Default value isfalse. - Default value: false
- Type: string
- Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
- Description: The name of the store price book record.
- Type: reference
- Properties: Create, Filter, Group, Sort, Update
- Description: The ID of the price book assigned to the store.
- Relationship name: Pricebook2
- Relationship type: relationship
- Refers to: Pricebook2
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: The ID of the store assigned to the price book.
- Relationship name: WebStore
- Relationship type: masterdetail
- Refers to: WebStore
Use the WebStorePricebook object to assign price books to a store. When you assign a price book to a web store, any buyer who has access to the store can price products from the assigned price books. When a store or buyer has multiple price book assignments, including prices to the same product, the price is determined by the pricing strategy of the store.
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version.