---
schema_version: "1"
id: e67aa5d75ff78598e232f30cc63fb4f46a5a698ebb8f10b72b8ef7900a6b5a14
title: DeclinedEventRelation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_declinedeventrelation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_declinedeventrelation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 582ac9fef33ab45d6148a85e4dc8f75595bfdba10edbcb29d89d93ebec16e4d3
description: Represents event participants (invitees or attendees) with the status Declined for a given event. This object is available in API versions 29.0 and later.
---
# DeclinedEventRelation

Represents event participants (invitees or attendees) with the status Declined for a given event. This object is available in API versions 29.0 and later.

## Supported Calls

describeSObjects(), query(), retrieve()

## Fields

| Field Name | Details |
| --- | --- |
| EventId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Indicates the ID of the event.

This is a relationship field.

Relationship Name

Event

Relationship Type

Lookup

Refers To

Event



 |
| RelationId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Indicates the ID of the invitee.

This is a polymorphic relationship field.

Relationship Name

Relation

Relationship Type

Lookup

Refers To

Calendar, Contact, Lead, User



 |
| RespondedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Indicates the most recent date and time when the invitee declined an invitation to the event.



 |
| Response | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Indicates the content of the response field. Label is Comment.



 |
| Type | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Indicates whether the invitee is a user, lead or contact, or resource.



 |

## Usage

Query invitees who have declined an invitation to an event

SELECT eventId, type, response FROM DeclinedEventRelation WHERE eventid='00UTD000000ZH5LA'

#### See Also

- [AcceptedEventRelation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_acceptedeventrelation.htm "Represents event participants (invitees or attendees) with the status Accepted for a given event.")
- [UndecidedEventRelation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_undecidedeventrelation.htm "Represents event participants (invitees or attendees) with the status Not Responded for a given event. This object is available in API versions 29.0 and later.")