---
schema_version: "1"
id: 70aff0c99ec746e00d2b8ddcb149eb6ac76d9f0c213c5fc875d0ba1f6d6c81a2
title: Prerequisites to Enable Multiple Service Resource Event Setting
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/ls_prereqs_multiple_attendee_event.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.ls_prereqs_multiple_attendee_event.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ff72d521f218f77c8ae7b824d276e9cda832936ec4af4f43a51fe9ef922234a3
description: Before you enable the Multiple Service Resource Event setting in your production org, enable the setting in a sandbox and then test its features.
products:
  - Scheduler
  - Salesforce Platform
release: "264"
---
# Prerequisites to Enable Multiple Service Resource Event Setting

Before you enable the Multiple Service Resource Event setting in your production org, enable the setting in a sandbox and then test its features.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

Ensure that you verify the customizations related to the Events that are associated with the service appointment logic. Here are some examples:

- Triggers on events that update the record
- Triggers on the assigned service resource or service appointment, which reads and updates events
- External integrations that use Events data

Here's a sample apex code to create an event with multiple attendees. Use this code in your sandbox, and then verify whether these event customizations work with the multiple service resource event feature.

```java
Event multiEvent = new Event();

multiEvent.ownerId = '005xx000001Sv6FAAS';//Event organizer
multiEvent.StartDateTime = Datetime.now();
multiEvent.EndDateTime = Datetime.now().addHours(1);
multiEvent.DurationInMinutes = 60;
multiEvent.Subject='Event with multiple attendees from Apex';

insert multiEvent;

//Create attendees
EventRelation firstAttendee = new EventRelation();
firstAttendee.eventId = multiEvent.Id;
firstAttendee.RelationId = '005xx000001SwuzAAC';//additional attendee

insert firstAttendee;

EventRelation secondAttendee = new EventRelation();
secondAttendee.eventId = multiEvent.Id;
secondAttendee.RelationId = '005xx000001SvHGAA0';//additional attendee

insert secondAttendee;
```