Skip to content

SalesForce IoT Service

Integrate with SalesForce's IoT data API

Operations


Configuration parameters

Name Type Description
token string(password) Access Token (Your API key for accessing the SalesForce API)
cluster_hostname ^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$ Hostname (The cluster hostname of your SalesForce endpoint)

Operations

sendEvents

Send events to the given stream endpoint

Arguments

parameters - object - Object containing service call parameters.
Name Type Description
stream string The name of the stream to which you're writing data.
device string The name of the device to which you're writing data.
events [ object ] List of events
events[].* string, boolean, number Values to be written in the key

Responses

Events posted

Content: object The contents of a response to a successful post to a SalesForce stream

Name Type Description
Count integer The number of stream events recorded

Example

params = {
  ["stream"] = "stream001",
  ["device"] = "device001",
  ["events"] = {
    {
      ["Time"] = "9/1/20170:30",
      ["Status"] = "On",
      ["TemperatureF"] = "70"
    },
    {
      ["Time"] = "9/1/20160:35",
      ["Status"] = "On",
      ["TemperatureF"] = "75"
    }
  }
} response.message = Salesforceiot.sendEvents(params)

Last update: May 14, 2021