Using IoT Events
Based on the IoT framework/setup on your product, there might be several layers of implementation to connect the smart asset to ServiceMax for event handling. However, the core of the implementation is about how to invoke the events on ServiceMax, what and how data should be passed, and how the response should be handled.
Invoking the Event
The events can be invoked using their REST endpoint URI. The generic form of the REST endpoint URI for any IoT event (standard or custom) is http://<your salesforce instance url>/services/apexrest/SVMXC/svmx/rest/IOTServiceIntf/<EventName>/2.0/.
For example, if your Saleforce organization url is na17.salesforce.com, then CreateServiceRequest event can be invoked as http://na17.salesforce.com/services/apexrest/SVMXC/svmx/rest/IOTServiceIntf/CreateServiceRequest/2.0/.
For specific endpoints for standard events that are supported out of the box, see IoT Events.
Passing Data
This is also known as the webservice request payload or the request body. Attributes of the asset invoking the event and the details of the incident (failure / warning) must be passed in JSON format. Refer to
Request Payload Structure for details.
Responses and Errors
All the standard events return the Salesforce record id of the newly created record on success. On failure, they return appropriate error messages. for more information, see
Error Handling.