---
schema_version: "1"
id: c9ded86f24632cbbc6b79891e4b470509ace43868b6b39d2b365184ba71ff77e
title: AbnExperiment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_abnexperiment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_abnexperiment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c8e493e9d78667913faa4a420b6beaab6e3a0598d81ad245a85ffcf41070ae9b
description: Represents an A/B/n experiment that's used with Marketing Cloud Next content, Experience Cloud websites, and platform automations. This object is available in API version 63.0 and later.
---
# AbnExperiment

Represents an A/B/n experiment that's used with Marketing Cloud Next content, Experience Cloud websites, and platform automations. This object is available in API version 63.0 and later.

## Supported Calls

describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Fields

| Field | Details |
| --- | --- |
| DataSpaceId | 
Type

reference

Properties

Filter, Group, Sort

Description

Unique identifier that refers to the data space where an experiment's resources originate. Required.

This field is a relationship field.

Relationship Name

DataSpace

Refers To

DataSpace



 |
| Description | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Text description of the experiment. Optional.



 |
| DeveloperName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

System or user-generated API name for the experiment. Required.



 |
| LastAnalyzed | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Time and date of last analysis.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Timestamp that indicates the last time an experiment was referenced by another resource.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Timestamp that indicates the last time a user viewed the experiment.



 |
| Name | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

Text label that identifies the experiment. Required.



 |
| PersonalizationSchemaEnum | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Picklist value that indicates the type of personalization schema, which is related to where a personalization decision is created.

Possible values are:

- DecisionDefined
- ExperienceVariation
- FlowPath





 |
| PersonalizationSchemaId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier that refers to the schema that’s related to the experiment.

This field is a relationship field.

Relationship Name

PersonalizationSchema

Refers To

PersonalizationSchema



 |
| PrimaryMetricId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier that refers to engagement signal metrics, which are used to measure an experiment.

This field is a polymorphic relationship field.

Relationship Name

PrimaryMetric

Refers To

EngagementSignalCmpndMetric, EngagementSignalMetric



 |
| ProfileDataGraphId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier that refers to the profile data graph that’s used.

This field is a relationship field.

Relationship Name

ProfileDataGraph

Refers To

DataGraph



 |
| ScheduleFrequencyInMinutes | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

Number of minutes that defines when personalized content can be made available.



 |
| Source | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Indicates where the experiment was created.

Possible values are:

- BlockBuilder—CMS content editors
- ExperienceBuilder—Experience Site Builder
- FlowBuilder
- PersonalizationApp





 |
| SourceRecordId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier that refers to the specific record that contains the experiment.

This field is a polymorphic relationship field.

Relationship Name

SourceRecord

Refers To

FlowRecordElement, ManagedContent



 |
| StartedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Timestamp that indicates when the experiment began or is scheduled to begin.



 |
| State | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Restricted picklist, Sort

Description

Picklist value that indicates the current state of the experiment.

Possible values are:

- Archived
- Created
- Started
- Stopped

The default value is Created.



 |
| Status | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Restricted picklist, Sort

Description

Picklist value that indicates the current status of the experiment while an action is being performed.

Possible values are:

- Active
- CreateError
- DeleteError
- Deleting
- EditError
- Processing

The default value is Processing.



 |
| StoppedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Timestamp that indicates when the experiment ended or is scheduled to end.



 |
| WinnerSelectionMode | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort

Description

Possible values are:

- Automatic
- Manual

The default value is Manual.



 |

## Associated Objects

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 and later.

[AbnExperimentChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.")

Change events are available for the object.

[AbnExperimentFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[AbnExperimentHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

[AbnExperimentOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[AbnExperimentShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.