The Salesforce adapter can be used to fetch customer and invoices data. It executes a SOQL (Salesforce Object Query Language) query, and the results are sent to a Gaviti adapter that is configured with field mapping. Every Gaviti field can be mapped to a Salesforce field.
Prerequisites
Create an X509 certificate (to be done by the CSM):
openssl req -x509 -sha256 -nodes -days 36500 -newkey rsa:2048 -keyout gaviti-salesforce-key.key -out gaviti-salesforce-certification.crt
The certificate (
.crt
file) will be uploaded to Salesforce to validate the Gaviti integration. The private key (.key
file) will be used to sign Gaviti integration calls and will be stored in the Gaviti adapter.
Salesforce Application Creation
Login to Salesforce.
Go to the setup area (gear icon in the top right).
In the side nav, go to Apps > App Manager.
Click New Connect App.
In the Basic Information section, populate the required fields:
Connected App Name: Gaviti
API Name: Gaviti
Contact Email: [email protected]
In the API (Enable OAuth Settings) section:
Check Enable OAuth Settings
Callback URL: https://app.gaviti.com/li/settings/integrationList
Check Use digital signatures. Upload the
gaviti-salesforce-certification.crt
file that was generated earlier.For Selected OAuth Scopes, add:
Click Save. If there are any errors, re-upload the
gaviti-salesforce-certification.crt
file.On the resulting app page, click Manage.
Click Edit Policies.
In the OAuth policies section, change Permitted Users to Admin approved users are pre-authorized.
Click Save.
Back on the app page, in the Profiles section, click Manage Profiles.
On the Application Profile Assignment page, assign the user profiles that will have access to this app.
OAuth Access Configuration
To use the API, you will need the RSA private key and the Consumer Key (also known as the client ID) from the Salesforce application.
The private key is the
.key
file that was generated in the Prerequisites section.To get the Salesforce application Consumer Key: