Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Wish-List Interactions

A wish-list interaction occurs when a customer adds or removes items from their wish list.
Interaction Name Description
wish-list-add Captures an event for the addition of an item to a wish list.
wish-list-remove Captures an event for the removal of an item from a wish list.
wish-list-replace Captures an event for the replacement of all items in a wish list at the same time.
wish-list-update Captures events for updates to a wish list.

Fields

Field Details
attributes
Type
object
Description
A dictionary of values that you supply.
id
Type
string
Description
Required. A unique ID representing the Wishlist object.
lineItems
Type
Line Item Data
Description
Required. A single Line Item Data value.
name
Type
string
Description
Required. The event name.

Add to Wish List Interaction Event

1event.target.dispatchEvent(
2   new CustomEvent('experience_interaction', {
3      bubbles: true,
4      composed: true,
5      detail: {
6         name: 'wish-list-add',
7         wishList: {
8            id: 'wish-list-12345',
9            lineItems: {
10               catalogObject: {
11                  id: 'catalog-id-12345678',
12                  type: 'Product'
13               },
14               attributes: {
15                  quantity: 12,
16                  price: 2.5,
17                  name: 'gray-jeans'
18               },
19            },
20            attributes: {
21               currency: '$',
22               name: 'my-personal-wish-list,
23            },
24         },
25      },
26   })
27);