ctm.secureQuery
The method of JS Bridge functionality is intended to make secure requests to data tables and receive records by criteria during the Self Detailing meetings.
| The corresponding CTM Setting record of the Remote Detailing Request type is required. |
Query Format
ctm.secureQuery({alias:'alias', param:'param'}, handler)
-
alias is an alias for the query that is stored on the Salesforce side.
-
param is the condition for the query (optionally).
Handler
Use a handler function to describe the output format of the query results, e.g., to display the results of operations or method errors for debugging purposes.
ctm.secureQuery({ alias: 'retrieve_account' , params: { name: 'test%' }}, function(res) {
console.log('Response: ', res);
});
The result:
ctm.secureQuery({ alias: 'retrieve_account' , params: { name: 'Name from input parameter' }}, function(res) {
console.log('Response: ', res);
});