Revenue Grid API calls for Salesforce Scheduler#
Starting with the Salesforce Spring 2021 release, Salesforce Scheduler can integrate with Revenue Grid Salesforce Scheduler Adapter (SSA) to:
Retrieve users’ and colleagues’ calendar availability from Microsoft Outlook calendars for scheduling in Salesforce Scheduler.
Synchronize Salesforce Scheduler events to Microsoft Outlook calendars.
This article describes the API endpoints, request structure, and synchronization behavior used by Salesforce Scheduler Adapter.
Specific calendar actions performed over API#
The Salesforce Scheduler Adapter API supports the following operations on Microsoft Exchange calendars:
Read calendar availability data
Create calendar appointments
Update calendar appointments
Delete calendar appointments
Identify the meeting organizer
Retrieve attendees’ busy time slots from Exchange calendars
Create appointments in attendees’ calendars based on Salesforce Scheduler events
Verify synchronization results and return troubleshooting error codes
Prerequisites#
Different prerequisites apply depending on whether the operation retrieves availability data or synchronizes appointments.
Prerequisites for availability retrieval (Read)#
To retrieve attendee availability:
Create a Revenue Grid profile that includes the required attendees.
Obtain a Revenue Grid access token for a dedicated user in the same profile with valid Microsoft Exchange credentials configured.
Ensure all users whose availability is retrieved belong to the same Microsoft Exchange organization.
Prerequisites for Create, Update, and Delete operations#
To create, update, or delete appointments:
Create a Revenue Grid profile authorized via a service impersonation account.
Ensure all users whose Salesforce Scheduler events are synchronized to Outlook belong to the same profile.
Obtain a Revenue Grid access token for a dedicated user in the same profile with Profile admin permissions enabled.
Important
Email aliases are not supported for these operations. Each Salesforce user must map to a single Revenue Grid user and email address.
Note
All date and time values in requests and responses use the ISO 8601 format:
YYYY-MM-DDThh:mm:ssZ
All dates and times are processed in the GMT time zone.
Salesforce Scheduler synchronization with Microsoft Exchange#
When Salesforce Scheduler events are synchronized to Microsoft Outlook calendars, Revenue Grid creates overlapping appointments for organizers and attendees instead of a single Exchange meeting object. This behavior is caused by Microsoft Exchange technical limitations.
Endpoint 1: Retrieve attendees’ calendar availability from Outlook calendars (Read)#
Retrieves attendees’ availability data from Microsoft Exchange calendars for Salesforce Scheduler.
Endpoint URL#
POST {TENANT_URL}/api/salesforce/scheduler/availability
Request parameters#
The request includes the following parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
Revenue Grid tenant URL associated with the organizer |
|
string (ISO 8601 UTC timestamp) |
Start date and time of the availability range in ISO 8601 UTC format |
|
string (ISO 8601 UTC timestamp) |
End date and time of the availability range in ISO 8601 UTC format |
|
string |
Technical identifier acquired by Salesforce Scheduler for troubleshooting and request tracing |
Example:
from=2026-10-15T00:00:00Z&to=2026-10-17T12:00:00Z&salesforceCorrelationId=abcdefg
Request body#
The request body includes the following properties:
Property |
Type |
Description |
|---|---|---|
|
string |
Email address of an attendee in the same Microsoft Exchange organization |
|
string |
Technical identifier required by Salesforce Scheduler |
|
boolean |
Indicates whether the attendee is the meeting organizer |
Sample request#
POST {TENANT_URL}/api/salesforce/scheduler/availability?from=2020-10-15T00:00:00Z&to=2020-10-17T12:00:00Z&salesforceCorrelationId=abcdefg
Body:
[
{
"email": "[email protected]",
"serviceResourceId": "12345",
"isOrganizer": true
},
{
"email": "[email protected]",
"serviceResourceId": "54321"
}
]
Response body#
The response includes the following data for each attendee:
Property |
Type |
Description |
|---|---|---|
|
string |
Technical identifier required by Salesforce Scheduler |
|
string |
Operation result code. Returns |
|
array of objects |
List of unavailable time slots retrieved from the attendee’s calendar |
Sample response#
[
{
"serviceResourceId": "12345",
"errorCode": "NoError",
"unavailableTimeslots": [
{
"timeMin": "2020-10-16T10:00:00Z",
"timeMax": "2020-10-16T12:00:00Z",
},
{
"timeMin": "2020-10-16T14:00:00Z",
"timeMax": "2020-10-16T15:00:00Z",
},
]
},
{
"serviceResourceId": "54321",
"errorCode": "NoError",
"unavailableTimeslots": [
{
"timeMin": "2020-10-16T10:00:00Z",
"timeMax": "2020-10-16T16:00:00Z",
}
]
},
]
Endpoint 2: Create Outlook appointments from Salesforce Scheduler events (Create)#
Creates Microsoft Exchange appointments based on Salesforce Scheduler events.
Endpoint URL#
POST {TENANT_URL}/api/salesforce/scheduler/postback
Request parameters#
The request includes the following parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
Revenue Grid tenant URL associated with the organizer |
Request body#
The request body includes the following properties:
Property |
Type |
Description |
|---|---|---|
|
string |
Unique identifier of the Salesforce Scheduler event |
|
string |
Email address of the event organizer |
|
string |
Appointment description |
|
string |
Appointment subject |
|
string |
Appointment location |
|
string (ISO 8601 UTC timestamp) |
Appointment start date and time in ISO 8601 format |
|
string (ISO 8601 UTC timestamp) |
Appointment end date and time in ISO 8601 format |
|
string |
Technical identifier generated by Salesforce for troubleshooting and request tracing |
|
array of objects |
List of appointment attendees |
attendees object#
Property |
Type |
Description |
|---|---|---|
|
string |
Email address of the attendee |
|
boolean |
Indicates whether the attendee is required or optional |
Sample request#
POST {TENANT_URL}/api/salesforce/scheduler/postback
Body:
{
"id": "abcde-fghij-klmno-pqrst-uvwxyzfb3f11e",
"organizerEmail": "[email protected]",
"body": "meeting description",
"subject": "meeting subject",
"location": "meeting room 1",
"startTime": "2020-10-16T10:00:00Z",
"endTime": "2020-10-20T23:00:00Z",
"salesforceCorrelationId": "ac3b40b4-2c33-463b-8bfe-8bcf077d7539",
"attendees": [
{
"email": "[email protected]",
"isRequired": "true",
},
{
"email": "[email protected]",
"isRequired": "false",
}
]
}
Response body#
The response includes the following data for each attendee:
Property |
Type |
Description |
|---|---|---|
|
string |
Email address of the attendee |
|
string |
Operation result code. Returns |
Sample response#
[
{
"email": "[email protected]",
"errorCode": "NoError"
},
{
"email": "[email protected]",
"errorCode": "ErrorMailRecipientNotFound"
},
{
"email": "[email protected]",
"errorCode": "NoError"
}
]
Endpoint 3: Update Outlook appointments (Update / Modify)#
Updates existing Microsoft Exchange appointments associated with Salesforce Scheduler events.
Note: The request must include both original and updated values, even if some values remain unchanged.
Endpoint URL#
PUT {TENANT_URL}/api/salesforce/scheduler/postback
Request parameters#
The request includes the following parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
Revenue Grid tenant URL associated with the organizer |
Request body#
The request body includes the following properties:
Property |
Type |
Description |
|---|---|---|
|
object |
Original appointment values before the update |
|
object |
Updated appointment values |
|
string |
Technical identifier generated by Salesforce for troubleshooting and request tracing |
original object#
Property |
Type |
Description |
|---|---|---|
|
string |
Unique identifier of the Salesforce Scheduler event |
|
string |
Email address of the event organizer |
|
string |
Appointment description |
|
string |
Appointment subject |
|
string |
Appointment location |
|
string (ISO 8601 UTC timestamp) |
Appointment start date and time in ISO 8601 format |
|
string (ISO 8601 UTC timestamp) |
Appointment end date and time in ISO 8601 format |
|
array of objects |
List of appointment attendees |
new object#
Property |
Type |
Description |
|---|---|---|
|
string |
Updated email address of the event organizer |
|
string |
Updated appointment description |
|
string |
Updated appointment subject |
|
string |
Updated appointment location |
|
string (ISO 8601 UTC timestamp) |
Updated appointment start date and time in ISO 8601 format |
|
string (ISO 8601 UTC timestamp) |
Updated appointment end date and time in ISO 8601 format |
|
array of objects |
Updated list of appointment attendees |
attendees object#
Property |
Type |
Description |
|---|---|---|
|
string |
Email address of the attendee |
|
boolean |
Indicates whether the attendee is required or optional |
Sample request#
PUT {TENANT_URL}/api/salesforce/scheduler/postback
Body:
{
"original": {
"id": "abcde-fghij-klmno-pqrst-uvwxyzfb3f11e",
"organizerEmail": "[email protected]",
"body": "meeting description",
"subject": "meeting subject",
"location": "meeting room 1",
"startTime": "2020-10-16T10:00:00Z",
"endTime": "2020-10-20T23:00:00Z",
"attendees": [
{
"email": "[email protected]",
"isRequired": "true",
},
{
"email": "[email protected]",
"isRequired": "false",
}
]
},
"new": {
"organizerEmail": "[email protected]",
"body": "meeting description",
"subject": "meeting subject",
"location": "meeting room 1",
"startTime": "2020-10-16T10:00:00Z",
"endTime": "2020-10-20T23:00:00Z",
"attendees": [
{
"email": "[email protected]",
"isRequired": "true",
},
{
"email": "[email protected]",
"isRequired": "false",
}
]
}
"salesforceCorrelationId": "ac3b40b4-2c33-463b-8bfe-8bcf077d7539"
}
Response body#
The response includes the following data for each attendee:
Property |
Type |
Description |
|---|---|---|
|
string |
Email address of the attendee |
|
string |
Operation result code. Returns |
Sample response#
[
{
"email": "[email protected]",
"errorCode": "NoError"
},
{
"email": "[email protected]",
"errorCode": "NoError"
},
{
"email": "[email protected]",
"errorCode": "ErrorMailRecipientNotFound"
}
]
Endpoint 4: Delete Outlook appointments (Delete)#
Deletes Microsoft Exchange appointments associated with Salesforce Scheduler events.
Endpoint URL#
DELETE {TENANT_URL}/api/salesforce/scheduler/postback
Request parameters#
The request includes the following parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
Revenue Grid tenant URL associated with the organizer |
Request body#
The request body includes the following properties:
Property |
Type |
Description |
|---|---|---|
|
string |
Unique identifier of the Salesforce Scheduler event |
|
string |
Email address of the event organizer |
|
array of strings |
List of attendee email addresses associated with the appointment |
Sample request#
DELETE {TENANT_URL}/api/salesforce/scheduler/postback
Body:
{
"id": "abcde-fghij-klmno-pqrst-uvwxyzfb3f11e",
"organizerEmail": "[email protected]",
"attendees": [
"[email protected]",
"[email protected]"
]
}
Response body#
The response includes the following data for each attendee:
Property |
Type |
Description |
|---|---|---|
|
string |
Email address of the attendee |
|
string |
Operation result code. Returns |
Sample response#
[
{
"email": "[email protected]",
"errorCode": "NoError"
},
{
"email": "[email protected]",
"errorCode": "NoError"
},
{
"email": "[email protected]",
"errorCode": "ErrorMailRecipientNotFound"
}
]
Exchange Server