---
schema_version: "1"
id: 4d3fc255bb5df1ba905cbac256b6bb6b5f9aa2c021de32952e665b63c0534c3e
title: SubjectMaterialTemplate
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_subjectmaterialtemplate.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_subjectmaterialtemplate.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 42b42c9cd4fa6c3bf72b603511bd1a95d61b37b73f1339593a540ff3d5c117f0
description: Represents the details of a subject material template that's approved for use in managed events. This object is available in API version 67.0 and later.
---
# SubjectMaterialTemplate

Represents the details of a subject material template that's approved for use in managed events. This object is available in API version 67.0 and later.

## Supported Calls

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

## Fields

### ContentDocumentId

- **Type**: reference
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The ID of the content document that's used as the subject material template.
    
    This field is a relationship field.
- **Relationship Name**: ContentDocument
- **Refers To**: ContentDocument

### EmailTemplateId

- **Type**: reference
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The ID of the email template that's used as the subject material template.
    
    This field is a relationship field.
- **Relationship Name**: EmailTemplate
- **Refers To**: EmailTemplate

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last viewed this record or list view.
    
    If this value is null, and LastReferenceDate isn’t null, the user accessed this record or list view indirectly.

### Name

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Sort, Update
- **Description**: The name of the subject material template.

### SourceSystem

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The name of the external system that generated the record.

### SourceSystemIdentifier

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Nillable, Sort, Update
- **Description**: The ID of the record in the external system.

### SubjectId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The ID of the subject that the subject material template belongs to.
    
    This field is a relationship field.
- **Relationship Name**: Subject
- **Relationship Type**: Master-detail
- **Refers To**: Subject (the master object)

### TemplateReferenceId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The ID of the subject material template.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: TemplateReference
- **Refers To**: ContentDocument, EmailTemplate

### TemplateType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: Required. Specifies the type of subject material template. For example, a template type can be presentation slides, or an email template.

### TemplateUrl

- **Type**: url
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The URL of the template that's used as a source of the subject material template.

### ValidityEndDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The date and time until when the subject material template is valid for managed events.

### ValidityStartDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The date and time from when the subject material template is valid for managed events.

### VersionNumber

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The version number of the subject material template.

## 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.

SubjectMaterialTemplateFeed

Feed tracking is available for the object.

SubjectMaterialTemplateHistory

History is available for tracked fields of the object.