| Methods / Methods for Custom Attributes | |
Web Services
Sets the name and value for a custom attribute for a specified custom ID.
public virtual SetCustomAttr(String customID, String attributeName, object val)
| Name | Description |
|---|---|
customID |
|
attributeName |
|
val |
|
None.
IWFWorkflowService svc = GetWorkflowService();
string customID = ..// for example,
"InfoPath:011eaf6c46ac4723b25b4db5772d9912"
string attributeName = ...// for example,
"//pd:purchaseOrder/pd:secondApproval"
bool val = true;
try
{
svc.SetCustomAttr(customID, attributeName, val);
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
3.2.0.4 and higher