---
schema_version: "1"
id: b3ae3060d3c21d8d4f30ed7b4cc8427446a400d79d614e6c5defcbd97e4f4396
title: Snippet
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_snippet.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_snippet.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 877d0c1197e8af68d851bce68cd201440975371250da5f0b6bbbc847ad735820
description: Represents a snippet, which is a container for rich text that can be reused across Account Engagement emails and email templates. This object is available in API version 47.0 and later.
---
# Snippet

Represents a snippet, which is a container for rich text that can be reused across Account Engagement emails and email templates. This object is available in API version 47.0 and later.

## Supported Calls

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

## Special Access Rules

Snippets are available in Account Engagement business units with the Sales, CRM, or Service permission set license.

## Fields

| Field | Details |
| --- | --- |
| Description | 
Type

textarea

Properties

Create, Nillable, Update

Description

The description of the snippet. Limited to 32 KB.



 |
| DeveloperName | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

Required. This field value is unique to your org and is required for a Snippet to be resolved in marketing content. Label is **API Name**.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed a record related to this record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Required. The name of the snippet.



 |
| Type | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The type of content a snippet includes. Allowable values are: Date, Image, Link, Text. This field is for organizational purposes.



 |
| Value | 

Type

textarea

Properties

Create, Nillable, Update

Description

The body content of a snippet. This field can contain plain or rich text. The value of a snippet is resolved when a marketing email is sent. The field does not support emojis, HTML, or image files.



 |

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

[SnippetFeed](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.