workflowtaskstr Function

Dynamics AX 2009

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


str workflowtaskstr(task task)

Parameter

Description

task

The AOT name of the workflow task.

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

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

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

static void MyWorkflowTaskStrExample(Args _args)
{
    str s;
    ;
    s = workflowtaskstr(MyWorkflowTask);
    print s;
    pause;
}

Community Additions

ADD
Show: