WFGetDiversionforUser

This call returns the details about the diversion for the particular user. You can view the XML input and output parameters, which have to be passed for getting the diversion details. There is a list of errors and warning that can occur in the execution.

 

Input Parameter description

 View Sample InputXML

Output Parameter description

 View Sample OutputXML

Errors and Warnings

View Sample Code

Input Parameter description

* 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 user id for which the diversion details are required.

NA

 

Output Parameter description

Name

Parent Tag

Description

Option

Root

It refers to the case sensitive call name.

MainCode

Exception

Error code specified by WAPI.

UserName

UserInfo

It is the user name for which the diversion is set

AssignedToUserId

UserInfo

It is the target user id which is diverted.

AssignedToUserName

UserInfo

It is the target user name which is diverted.

From

UserInfo

It is the from date since which the diversion is set.

To

UserInfo

It is the To date till which the diversion is set.

CurrentWorkitemsFlag

UserInfo

This flag displays where the current workitems are also diverted or not.

 

Errors and Warnings

Code

Constant Value

Message

18

WM_NO_MORE_DATA

No more records

11

WM_INVALID_SESSION_HANDLE

Invalid session

15

WM_INVALID_FILTER

The requested filter is invalid.