Remove Custom Attributes

API Type

Web Services

Description

Removes multiple custom attributes from a custom ID.

Syntax

public virtual void RemoveCustomAttrs(string customID, string[] namesArray)

Parameters

Name Description

customID

Definition:
A work object ID specified within a process instance.
Type
string
Allowed Values:
One valid work object ID.

namesArray

Definition:
The the names of one or more items, such as a properties or attributes.
Type
string
Allowed Values:
An array of valid names.

Output

None.

Example

//Sample for using Workflow.RemoveCustomAttr
IWFWorkflowService svc = GetWorkflowService();
string customID = ...// for example,
"InfoPath:011eaf6c46ac4723b25b4db5772d9912"

// array of attribute name, for example,
// new string[] { // "//pd:purchaseOrder/pd:secondApproval", ... };
string[] namesArray = ...

try
	{
    svc.RemoveCustomAttrs(customID, namesArray);
	}

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

Supported Versions

3.2.0.4 and higher