This call sets the diversion for the user for a particular time period. The workitems assigned to the source user will be diverted to the target user for that particular time period. Even the current workitems assigned to the source user are diverted.
You can view the XML input and output parameters, which have to be passed for diversion. There is a list of errors and warning that can occur in the execution.
* implies for the mandatory parameter.
Name |
Parent Tag |
Description |
Valid Value |
Option * |
Root |
It refers to the case sensitive call name. |
case sensitive call name. |
EngineName * |
Root |
It is the cabinet or database name, which has to be connected. |
NA |
SessionID * |
Root |
It is the logged in user session id |
NA |
UserID * |
Root |
It is the source user id which has to be diverted. |
NA |
AssignedToUserID * |
Root |
It is the target user id |
NA |
From * |
Root |
It is the time period for which the workitems are diverted. |
NA |
Operation * |
Root |
It is the operation specified for the workitem |
"I" for insert and "D" for delete |
CurrentWorkItemFlag |
Root |
This flag indicates whether set the diversion for the user for the current workitem as well or not. |
"Y" or "N" |
Name |
Parent Tag |
Description |
Option |
Root |
It refers to the case sensitive call name. |
MainCode |
Exception |
Error code specified by WAPI. |
UserID |
FailedInfo |
It is the Id of the User for whom diversion setting failed. |
AssignToUserID |
FailedInfo |
It is the Id of the Assigned User for whom diversion setting failed. |
Code |
Constant Value |
Message |
11 |
WM_INVALID_SESSION_HANDLE |
Invalid session |
15 |
WM_INVALID_FILTER |
The requested filter is invalid. |