Using the API in the jtel system involves using the genericQuery object in a routing application.
A sample routing application is shown here which can be used in combination with the task scheduler to retrieve tasks from Salesforce at regular intervals.
genericQuery
This object performs calls the REST API genericQuery in the SalesForce instance.
Note: because the endpoint is configurable, there can be many genericQuery endpoints in the Salesforce instance for different use-cases.
The following parameters are provided:
Parameter | Description |
---|---|
Param1 | The 1st parameter passed to the service. |
Param2 | The 2nd parameter passed to the service. |
Param3 | The 3rd parameter passed to the service. |
Param4 | The 4th parameter passed to the service. |
Query | The query parameter passed to the service. |
Return Data
The return data should be valid JSON.
Note: all fields returned from the sales force query, will be available in the GUI as variables in the form: $SalesForce.<FIELD_NAME>