Skip to content

qie.getOutboundCount

Signature: qie.getOutboundCount(endpointId*)

Returns: Integer outboundCount - the number of messages in the outbound queue

Returns the current number of messages in the outbound queue(s).

Parameters

Type Name Description Default
String endpointId* (optional) the endpoint ID specified on the destination node configuration page. If not specified the default behavior is to return the total of all outbound messages for the channel. null

Example

/* From Source Script */
if (qie.getOutboundCount() < 15) {
   qie.addInboundMessage('{"status":"Take it easy on the remote system"}', 'sample.json');
}