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

Available in: Lightning Experience.
Available in: Enterprise and Unlimited Editions

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.

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;