Sunday, October 28, 2012

Get Active workflow configuration

Hi Folks,

The below code snippet would help you to get an active workflow configuration in Ax 2009 for a workflow template.


WorkflowConfigurationTable  workflowConfigurationTable;
    ;
    select firstonly workflowConfigurationTable
                                                where   workflowConfigurationTable.TemplateName   ==         &&                                                  workflowConfigurationTable.Enabled              == NoYes::Yes     &&                                                    workflowConfigurationTable.Type                 == WorkflowConfigurationType::Definition  &&
                                                        workflowConfigurationTable.DefaultConfiguration == NoYes::Yes;



Happy DAXing............

No comments: