---
schema_version: "1"
id: 2ca698bcc3f84f9cc4ad2179198f7751ce3081196c74a65c86eb0c72bd45ff74
title: ApprovalAlertContentDef
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_approvalalertcontentdef.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_approvalalertcontentdef.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fddbff53302c33d67bf36ade722588d957ef3aa2def639ebb4ffdcb7985b8ed2
description: Represents the mapping that links specific user-created email templates to different notification events such as initial assignment or reassignment within an Advanced Approvals flow. This object is available in API version 66.0 and later.
---
# ApprovalAlertContentDef

Represents the mapping that links specific user-created email templates to different notification events such as initial assignment or reassignment within an Advanced Approvals flow. This object is available in API version 66.0 and later.

## Supported Calls

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

## Special Access Rules

This object is available in Enterprise, Professional, Unlimited, and Developer Editions where Advanced Approvals is enabled.

## Fields

| Field | Details |
| --- | --- |
| ApprovalFlowApiName | 
Type

string

Properties

Create, Filter, Group, Sort, Update

Description

The API name of the approval workflow.



 |
| ApprovalStepApiName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The unique API name of the approval step.



 |
| EmailTemplateId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The email template that's associated with an approval step in the approval workflow.

This field is a relationship field.

Relationship Name

EmailTemplate

Refers To

EmailTemplate



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of the approval alert content definition.



 |
| NotificationReason | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

The reason within an approval step's lifecycle that triggers the notification for which an email is sent. For example, when an approval work item is moved from one user to another, a reassignment notification email is sent to the user.

Possible values are:

- ApprovalCreationSuccess
- ApprovalStepAssignment
- ApprovalStepAssignmentToDelegate
- ApprovalStepReassignment
- ApprovalStepReassignmentToDelegate
- ApprovalSubmissionApprovedOrRejectedStatusUpdate
- ApprovalWorkItemStatusUpdate
- AutoApprovalConfirmation





 |

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

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