SalesForce Overview
Setup
First install the vablet APEX package below.
https://login.salesforce.com/packaging/installPackage.apexp?
p0=04t36000000lXMT
Or the latest managed package:
https://login.salesforce.com/packaging/installPackage.apexp?p0=04t0V000001QZEq
Mapping
Next you will need to create the mapping which is an array of JSON objects.
A list of the types of objects and their expected format can be found here.
An example mapping can be found here.
You can use an online tool to make editing the JSON easier!
APEX Settings
Once you have created your mapping file it is necessary to add it to your vablet SalesForce APEX settings. This is required for each profile you wish to configure.
Upon adding a new APEX setting you will receive a setting ID. A separate ID will be required by SalesForce for every profile that has a different configuration.
SalesForce APEX settings in the vablet admin portal.

SalesForce Events
You will need to create a new APEX setting for the SELECT statement of the event. This is done in the admin console the same way you added your mapping.
An example SELECT statement for an event.
[{"selectStatement":"SELECT OwnerId, Id, WhatId, WhoId, ShowAs, AccountId, Subject, StartDateTime, ReminderDateTime, Description, EndDateTime, Location,(SELECT EventId,Status, RelationId FROM EventRelations) FROM Event"}]
SalesForce Contacts
If your SalesForce contact object contains custom fields, an APEX setting will need to be created for the contact lookup fields.
An example of a custom contact object definition.
[{"fieldsToSelect":"Account.ID,Account.Name ,IsDeleted,Id,FirstName,LastName, Name,Email,MailingCity,MailingState,MailingCountry,MailingPostalCode,Phone,LastModifiedDate"}]
SalesForce Integration
Step 1
Click on your name in SalesForce and goto Setup. Then type custom settings in the search area and click on manage.
SalesForce custom settings page.

Step 2
VabletDisplayMappingSettingId, VabletEventSelectId, and VabletFieldsToSelectFromContactTableId will correspond to what was just set up in the admin console.
VabletExtraContactMappingSettingId you shouldn't use yet. The rest should be self explanatory.
SalesForce settings management page.
