Newer Version Available
DiscoveryStory
A story defines the data and analytical settings that Einstein Discovery uses to generate insights and build predictive models. Story settings include the outcome variable, whether to maximize or minimize the outcome variable, the data to analyze in a CRM Analytics dataset, and other preferences. Story settings tell Einstein Discovery how to conduct the analysis and communicate its results. In Package Manager, this type is listed as "Discovery Story".
Declarative Metadata File Suffix and Directory Location
- file with .story suffix contains the story’s actual data
- file named ModelName.story-meta.xml suffix contains the story’s metadata
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>Subscriber_Changes</members>
5 <name>DiscoveryStory</name>
6 </types>
7 <version>55.0</version>
8</Package>Version
DiscoveryStorys are available in API version 54.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| application | string | Required. The CRM Analytics app the story is associated with. |
| autopilot | DiscoveryStoryAutopilotStatus | Optional. The autopilot status for the story. One of the following strings:
|
| classificationThreshold | double | Optional. The threshold for classification predictions for the story. |
| label | string | Required. The story label. If you package a story, this label appears in Package Manager. |
| outcome | DiscoveryStoryOutcome | Required. The selected outcome of the story. |
| sourceContainer | string | Required. The source ID for the story. |
| sourceType | DiscoveryStorySourceType | Required. The source type of the story. One of the following strings:
|
| validationContainder | string | Optional. The validation ID for the story. |
DiscoveryStoryOutcome
Represents the selected outcome of the generated story.
| Field Name | Field Type | Description |
|---|---|---|
| failureValue | string | Optional. The value if the story failed. |
| field | string | Required. The field configuration for the story. |
| goal | DiscoveryStoryOutcomeGoal | Required. The story outcome goal. One of the following strings:
|
| label | string | Required. The story outcome label. |
| successValue | string | Optional. The value if the story succeeded. |
| type | DiscoveryStoryOutcomeType | Required. The story outcome type. One of the following strings:
|
Declarative Metadata Sample Definitions
1<?xml version="1.0" encoding="UTF-8"?>
2<DiscoverStory xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3 <application>MyStoryApp</application>
4 <autopilot>Enabled</autopilot>
5 <classificationThreshold>0.7383</classificationThreshold>
6 <label>SubscriberChanges</label>
7 <outcome>
8 <field>Subscriber</field>
9 <goal>Minimize</goal>
10 <label>SubscriberChangeOutcome</label>
11 <successValue>Success</successValue>
12 <type>Numerical</type>
13 </outcome>
14 <sourceContainer>01X00000000xxxx1AB</sourceContainer>
15 <sourceType>AnalyticsDataset</sourceType>
16</DiscoveryStory>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.