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.

Access authorization token#

Access to Microsoft Exchange data is authorized using a Revenue Grid access token generated by Context Sync.

For more details, see About Context Sync.

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

TENANT_URL

string

Revenue Grid tenant URL associated with the organizer

from

string (ISO 8601 UTC timestamp)

Start date and time of the availability range in ISO 8601 UTC format

to

string (ISO 8601 UTC timestamp)

End date and time of the availability range in ISO 8601 UTC format

salesforceCorrelationId

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

email

string

Email address of an attendee in the same Microsoft Exchange organization

serviceResourceId

string

Technical identifier required by Salesforce Scheduler

isOrganizer

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

serviceResourceId

string

Technical identifier required by Salesforce Scheduler

errorCode

string

Operation result code. Returns NoError when the request succeeds; otherwise returns a troubleshooting error code

unavailableTimeslots

array of objects

List of unavailable time slots retrieved from the attendee’s calendar

unavailableTimeslots object#

Property

Type

Description

timeMin

string (ISO 8601 UTC timestamp)

Start date and time of the unavailable time slot in ISO 8601 UTC format

timeMax

string (ISO 8601 UTC timestamp)

End date and time of the unavailable time slot in ISO 8601 UTC format

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

TENANT_URL

string

Revenue Grid tenant URL associated with the organizer

Request body#

The request body includes the following properties:

Property

Type

Description

id

string

Unique identifier of the Salesforce Scheduler event

organizerEmail

string

Email address of the event organizer

body

string

Appointment description

subject

string

Appointment subject

location

string

Appointment location

startTime

string (ISO 8601 UTC timestamp)

Appointment start date and time in ISO 8601 format

endTime

string (ISO 8601 UTC timestamp)

Appointment end date and time in ISO 8601 format

salesforceCorrelationId

string

Technical identifier generated by Salesforce for troubleshooting and request tracing

attendees

array of objects

List of appointment attendees

attendees object#

Property

Type

Description

email

string

Email address of the attendee

isRequired

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

email

string

Email address of the attendee

errorCode

string

Operation result code. Returns NoError when the request succeeds; otherwise returns a troubleshooting error code.

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

TENANT_URL

string

Revenue Grid tenant URL associated with the organizer

Request body#

The request body includes the following properties:

Property

Type

Description

original

object

Original appointment values before the update

new

object

Updated appointment values

salesforceCorrelationId

string

Technical identifier generated by Salesforce for troubleshooting and request tracing

original object#

Property

Type

Description

id

string

Unique identifier of the Salesforce Scheduler event

organizerEmail

string

Email address of the event organizer

body

string

Appointment description

subject

string

Appointment subject

location

string

Appointment location

startTime

string (ISO 8601 UTC timestamp)

Appointment start date and time in ISO 8601 format

endTime

string (ISO 8601 UTC timestamp)

Appointment end date and time in ISO 8601 format

attendees

array of objects

List of appointment attendees

new object#

Property

Type

Description

organizerEmail

string

Updated email address of the event organizer

body

string

Updated appointment description

subject

string

Updated appointment subject

location

string

Updated appointment location

startTime

string (ISO 8601 UTC timestamp)

Updated appointment start date and time in ISO 8601 format

endTime

string (ISO 8601 UTC timestamp)

Updated appointment end date and time in ISO 8601 format

attendees

array of objects

Updated list of appointment attendees

attendees object#

Property

Type

Description

email

string

Email address of the attendee

isRequired

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

email

string

Email address of the attendee

errorCode

string

Operation result code. Returns NoError when the request succeeds; otherwise returns a troubleshooting error code.

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

TENANT_URL

string

Revenue Grid tenant URL associated with the organizer

Request body#

The request body includes the following properties:

Property

Type

Description

id

string

Unique identifier of the Salesforce Scheduler event

organizerEmail

string

Email address of the event organizer

attendees

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

email

string

Email address of the attendee

errorCode

string

Operation result code. Returns NoError when the request succeeds; otherwise returns a troubleshooting error code.

Sample response#

[
    {
        "email": "[email protected]",
        "errorCode": "NoError"
    },
    {
        "email": "[email protected]",
        "errorCode": "NoError"
    },
    {
        "email": "[email protected]",
        "errorCode": "ErrorMailRecipientNotFound"
    }
]