workflowtemplatestr Function

Dynamics AX 2009

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


str workflowtemplatestr(template template)

Parameter

Description

template

The AOT name of the workflow template.

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

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

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

static void MyWorkflowTemplateStrExample(Args _args)
{
    str s;
    ;
    s = workflowtemplatestr(MyWorkflowTemplate);
    print s;
    pause;
}

Community Additions

ADD
Show: