Managing Messages
The services for messages management are available in the TW.AnalysisServices.MessagingServicesAPI resource.
The following table provides information about the purpose, input parameters, and the result of the service:
Service Name and Purpose
Input Parameters
Result
Parameter Name
Base Type
Description
sendMessage — Sends a message from the ThingWorx server to an agent or a client.
providerName
String
Specifies the name of the provider.
Throws an exception if the inputs are invalid like an invalid provider name, the agent or client does not exist, an invalid target type, or empty payload, and so on.
targetName
String
Specifies the name of the target. The target is either an agent or a client.
targetType
String
Specifies the type of the target as one of the following:
Agent
Client
payLoad
JSON
Specifies the message that needs to be sent to the agent or client.
Was this helpful?