Overview
The integration with the Samsara API provides direct integration to drivers and the assets they are driving through an ELD device and a phone application.
Samsara provides “push” status updates to the TMS via a sites-based web service. Inbound packets from Samsara are stored in the Queued Transaction table and processed by the QueuedTransactionJob.
Setup
Enter Credentials
Enable the Samsara integration by:
Navigating to TMS Admin,
Select Credentials.
Select the Global Services tab,
Find Samsara in the list and open the card.
Check the Enabled box.
Enter the User ID and Password 1 into the text fields.
Set the Service URL to: https://api.samsara.com.
Set the Test Service URL to: https://api.samsara.com.
Click the Save button when finished.
User ID | Password 1 | Password 2 | Customer Number |
|---|---|---|---|
"Revenova" | Required API Key |
Remote Site Settings
Upgrading from previous versions of the TMS may have outdated information. Check that the Remote Site Settings for the Samsara integration URL are up to date.
Click the Setup gear icon in the top right corner.
From the drop-down, click Setup.
In the Quick Find Toolbar type Remote Site Settings and click the link.
From the list of remote sites find Samsara and click the Edit link.
Partner Community Setup
The Samsara integration requires a webhook to send information into the TMS. Create an API Site to accept inbound traffic.
Create a Salesforce Site for API Guest User Access.
Set the public access for the Site.
Activate and Publish the Site.
Enter the API URL into the field for Inbound API Community URL under TMS Admin, in the Configuration section.
Add the following extension to the end of the URL to match the example below: /services/apexrest/rtms/tmslistener?org=[18-character org id]&source=Samsara&pwd=[credentials code field]
Contact Samsara support and provided them this "Post-back" URL to point at your listener.
{API Community URL}/services/apexrest/rtms/tmslistener?org=[18-character org id]&source=Samsara&pwd=[credentials code field]
Example: https://revenova.my.site.com/api/services/apexrest/rtms/tmslistener?org=00D180000008oA9EAI&source=Samsara&pwd=4wGFDgnT950Ovg1