setAgentStatus

Set status information for the rep.

setAgentStatus(agentStatus, statusInfo, enqueueNextState) → Promise.<GenericResult>

Returns: GenericResult — Represents a generic result type for a Connector API function.

FieldTypeDescription
agentStatusstringThe rep status, as configured in Salesforce.
statusInfoobjectAdditional information about the rep status.
enqueueNextStatebooleanIndicates whether the state should be enqueued, which updates the rep’s status after a call ends. Defaults to false.