CartValidationOutput

Associate errors to cart entities, such as cart line items, delivery groups, and the like, in a store built with B2B Commerce or D2C Commerce. An example error is “Out of stock.”

Introduced in API version 47.0.

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

  • The CartValidationOutput object is available only if the B2B Commerce or D2C Commerce license is enabled.
  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: ID of the background operation that ran the validation.
  • Relationship name: BackgroundOperation
  • Relationship type: relationship
  • Refers to: BackgroundOperation
  • Type: reference
  • Properties: Create, Filter, Group, Sort
  • Description: ID of the related WebCart.
  • Relationship name: Cart
  • Relationship type: masterdetail
  • Refers to: WebCart
  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Indicates whether the validation process is finished. Default value is false.
  • Default value: false
  • Type: picklist

  • Properties: Create, Filter, Group, Restricted picklist, Sort, Update

  • Description:

    Describes the type of output resulting from the validation process. Possible values are:

    • 0 (Info)
    • 1 (Error)
    • 2 (Warning)
  • Possible values:

    • Info — Info
    • Error — Error
    • Warning — Warning
  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Defines the message to show in the log when validation is complete. Message can be up to 255 characters.
  • Type: string
  • Properties: Create, Filter, Group, idLookup, Sort, Update
  • Description: The name of this CartValidationOutput record. Name can be up to 255 characters.
  • Type: reference
  • Properties: Create, Filter, Group, Sort, Update
  • Description: Foreign key to WebCart, CartItem, and CartDeliveryGroup.
  • Relationship name: RelatedEntity
  • Relationship type: polymorphic
  • Refers to: CartDeliveryGroup, CartItem, CartTax, WebCart
  • Type: string
  • Properties: Filter, Group, Nillable, Sort
  • Description: Three-character prefix for the related entity.
  • Type: picklist
  • Properties: Create, Filter, Group, Restricted picklist, Sort, Update
  • Description: The CartValidationOutput type.
  • Possible values:
    • CartSave — CartSave — Available in API version 64.0 and later.
    • Entitlement — Entitlement
    • Inventory — Inventory
    • Other — Other
    • Pricing — Pricing
    • Promotions — Promotions
    • Shipping — Shipping
    • ShippingPromotions — ShippingPromotions
    • SystemError — SystemError
    • Taxes — Taxes

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.