EmailConnection Class Methods
The following are the EmailConnection class methods:
Syntax
abandon(reason)
Description
Abandon email task without completing the task .
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to abandon. |
Returns
Request number.
Syntax
answer(reason)
Description
Answer/Accept the email assignment.
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to answer. |
Returns
Request number.
Syntax
attachUserData(userData,reason)
Description
Attach user data for the email connection.
Parameters
Field or Control |
Definition |
---|---|
userData |
User data of the email connection. |
reason |
The reason code for the answer request. |
Returns
Request number.
Syntax
complete(reason)
Description
Send task completion notification.
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to complete. |
Returns
Request number.
Syntax
forward(fromagentId,toagentId, qid, userdata, emaildata, reason)
Description
Forward email to another agent or to another queue.
Parameters
Field or Control |
Definition |
---|---|
fromagentid |
The agent id from whom task is forwarded. |
toagentid |
The target agent id to whom task is forwarded. |
qid |
The target queue to forward the task. |
userdata |
The user data. |
emaildata |
The email data. |
Reason |
The reason code to forward the task. |
Returns
Request number.
Syntax
reject(reason)
Description
Reject email assignment.
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to reject. |
Returns
Request number.
Syntax
withdraw_RES
(reason)
Description
Send response for the request of (Withdraw of Email) by routing server. This is the response from the agent to the routing system.
Parameters
Field or Control |
Definition |
---|---|
Reason |
The reason code to withdraw. |
Returns
Request number.