Update Delegation

API Type

Web Services

Description

Updates a delegation object that has already been created.

Syntax

WFDelegation UpdateDelegation(WFDelegation delegation)

Parameters

Name Description

delegation

Definition:
An object that specifies the details of the delegation rule, including the user whose tasks will be delegated and the designated user to whom to delegate the tasks.
Type
WFDelegation
Allowed Values:
A valid WFDelegation object.

Output

Returns an updated instance of WFDelegation.

Example

IWFAdminService svc = GetAdminService();
WFDelegation delegation = new WFDelegation();
delegation.DelegationID = ...// unique ID
delegation.FromUser = ...// from user name
delegation.ToUser = ...// to user name
delegation.StartDate = ... // start date
delegation.EndDate = ...// end date

try
	{
WFDelegation updatedDelegation = svc.UpdateDelegation( delegation );
	}

catch (Exception ex)
	{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}

Supported Versions

3.2.0.4 and higher