workflowapprovalstr Function

Dynamics AX 2009

Retrieves the name of a workflow approval in the Application Object Tree (AOT) as a string.


str workflowapprovalstr(approval approval)

Parameter

Description

approval

The AOT name of the workflow approval.

A string that represents the AOT name of the workflow approval.

Use this function instead of literal text to retrieve a string that contains the workflow approval name. If the workflow approval does not exist, the function generates a syntax error at compile time.

The following code example sets the variable str s to MyWorkflowApproval which is the name of the workflow approval in the AOT

static void MyWorkflowApprovalStrExample(Args _args)
{
    str s;
    ;
    s = workflowapprovalstr(MyWorkflowApproval);
    print s;
    pause;
}

Community Additions

ADD
Show: