---
schema_version: "1"
id: 3dd9fe06f124841fe5bb4ddd643df048607eef1dda845cba27028251a74de7f3
title: VoiceMailGreeting2
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_voicemailgreeting2.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_voicemailgreeting2.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 099fb8d73f9edeccbd0ad6f6c1ec6c15b3183ce3b276db547e96285c553fa061
description: Represents information about a voicemail message that reps can drop during outbound customer calls, or set to play when they're unable to take calls from customers. This object is available in API version 67.0 and later.
---
# VoiceMailGreeting2

Represents information about a voicemail message that reps can drop during outbound customer calls, or set to play when they're unable to take calls from customers. This object is available in API version 67.0 and later.

## Supported Calls

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

## Fields

| Field Name | Details |
| --- | --- |
| DurationInSeconds | 
Type

int

Properties

Create, Filter, Group, Sort, Update

Description

The duration of the voicemail message in seconds.



 |
| GreetingUrl | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

The URL of the audio file for the voicemail message.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of the voicemail message.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

ID of the voicemail message owner.

This is a polymorphic relationship field.

Relationship Name

Owner

Refers To

Group, User



 |
| ReferenceGreetingResourceId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID of the content document that contains the voicemail message.

This is a relationship field.

Relationship Name

ReferenceGreetingResource

Refers To

ContentDocument



 |
| Type | 

Type

picklist

Properties

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

Description

The type of voicemail message. Possible values are:

- Greeting
- VoicemailDrop





 |

## Associated Objects

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

[VoiceMailGreeting2OwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[VoiceMailGreeting2Share](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.