Make API calls from Salesforce

Making calls to the Skedulo API from Salesforce using Apex

You can call the Skedulo API directly from Salesforce custom Apex code through the Skedulo managed package. In particular, there are dedicated APIs to conveniently dispatch jobs and notify resources. All publicly available Skedulo API endpoints are accessible this way, making it easy to dispatch jobs and notify resources from the Salesforce console.

Salesforce requires the following configuration in order to make requests to the Skedulo API from the managed package:

  • A valid long-lived Skedulo API token must be configured in Salesforce.
  • Skedulo’s API base url,api.skedulo.com, must be authorized to perform API requests through the Skedulo package.

Set up a Skedulo API token in Salesforce

  1. Generate a long-lived API token through the Skedulo web application. For more information about how to do this, see Admin Setting: API tokens.
  2. Log into the Salesforce org.
  3. Click the Setting cog in the upper-right corner and select Setup.
  4. Use the Quick Find box in the upper-left to search for “Custom Metadata Types”.
  5. Click Manage Records next to Admin Settings.
  6. Create a new record with Skedulo_API_Token as the Admin Setting Name. Copy and paste the API token (generated in Step 1) into the value field of the new record.
  7. Create a new record with Skedulo_API_Token_Jti as the Admin Setting Name. Copy and paste the JTI value of the API token (generated in Step 1) into the value field of the new record.

Authorize the Skedulo API

  1. Log into the Salesforce org.
  2. Click the Setting cog in the upper-right corner and select Setup.
  3. Use the Quick Find box in the upper-left to search for “Remote Site Settings”.
  4. To activate the Skedulo_API, click Edit and select the Active checkbox, then click Save.

Skedulo exposes a global class and methods to enable code from outside the managed package to call API endpoints. Input definitions are either Notification requests that send notifications to resources, or Generic (non-notification) API calls.


Make generic Skedulo API requests using Salesforce

Making generic requests to the Skedulo API using Salesforce.


Make Skedulo API Notification requests using Salesforce

Dispatch jobs and notify resources from Salesforce using the Skedulo API.