Newer Version Available
TimelineObjectDefinition
Parent Type
This type extends the Metadata metadata type and inherits its fullName field.
File Suffix and Directory Location
TimelineObjectDefinition components have the suffix .timelineObjectDefinition and are stored in the timelineObjectDefinitions folder.
Version
TimelineObjectDefinition components are available in API version 55.0 and later.
Special Access Rules
TimelineObjectDefinition is available in any org that has the Timeline org preference enabled.
Fields
| Field Name | Description |
|---|---|
| baseObject |
|
| definition |
|
| isActive |
|
| masterLabel |
|
Declarative Metadata Sample Definition
The following is an example of a TimelineObjectDefinition component.
1<?xml version="1.0" encoding="UTF-8"?>
2<TimelineObjectDefinition
3 xmlns="http://soap.sforce.com/2006/04/metadata">
4 <baseObject>Account</baseObject>
5 <definition>{"timeline":{"anchorObject":{"object":{"entity":"Account","label":"Account","source":"","icon":""}},"age":{"field":"EffectiveDate","label":"Effective Date","type":"DateTime"},"events":[{"oneToMany":{"eventObject":{"name":"Case","label":"Case","recordTypes":[],"fieldsToDisplay":[{"field":"Description","label":"Description","type":"StringPlusClob"},{"field":"Priority","label":"Priority","type":"DynamicEnum"},{"field":"Status","label":"Status","type":"DynamicEnum"},{"field":"Subject","label":"Subject","type":"Text"}],"relatedlistsToDisplay":[{"entity":"CaseComments","label":"Case Comments"},{"entity":"CombinedAttachments","label":"Attachments"},{"entity":"AttachedContentDocuments","label":"Files"}],"title":{"field":"CaseNumber","label":"Case Number","type":"AutoNumber"},"subTitle":{"field":"Comments","label":"Internal Comments","type":"MultiLineText"}},"filters":[{"field":{"field":"Status","label":"Status","type":"DynamicEnum"},"operator":"EQ","values":["New"],"order":1}],"sort":{"field":"CreatedDate","label":"Created Date","type":"DateTime"},"anchorReferenceField":{"field":"AccountId","label":"Account ID","type":"EntityId"}}},{"oneToMany":{"eventObject":{"name":"Event","label":"Event","recordTypes":[],"fieldsToDisplay":[{"field":"ActivityDate","label":"Due Date Only","type":"DueDate"},{"field":"Attendees","label":"Attendees","type":"StringPlusClob"}],"relatedlistsToDisplay":[],"title":{"field":"Description","label":"Description","type":"StringPlusClob"},"subTitle":{"field":"Location","label":"Location","type":"Text"}},"filters":[],"sort":{"field":"ActivityDate","label":"Due Date Only","type":"DueDate"},"anchorReferenceField":{"field":"WhatId","label":"Related To ID","type":"EntityId"}}},{"oneToMany":{"eventObject":{"name":"Task","label":"Task","recordTypes":[],"fieldsToDisplay":[{"field":"CallDisposition","label":"Call Result","type":"Text"},{"field":"CallObject","label":"Call Object Identifier","type":"Text"},{"field":"CallType","label":"Call Type","type":"StaticEnum"}],"relatedlistsToDisplay":[],"title":{"field":"Description","label":"Description","type":"StringPlusClob"},"subTitle":{"field":"Priority","label":"Priority","type":"DynamicEnum"}},"filters":[],"sort":{"field":"ActivityDate","label":"Due Date Only","type":"DueDate"},"anchorReferenceField":{"field":"WhatId","label":"Related To ID","type":"EntityId"}}}]}}</definition>
6 <isActive>true</isActive>
7 <masterLabel>HealthTimeline</masterLabel>
8</TimelineObjectDefinition>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package
3 xmlns="http://soap.sforce.com/2006/04/metadata">
4 <types>
5 <members>*</members>
6 <name>TimelineObjectDefinition</name>
7 </types>
8 <version>55.0</version>
9</Package>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.