Get Current Legal Entity workflow configuration in D365fo x++

 

Get Current Legal Entity workflow configuration in D365fo x++

select TemplateName from WorkflowTable

            join ENABLED from WorkflowVersionTable

            where WorkflowVersionTable.WorkflowTable == WorkflowTable.RecId

            && workflowVersionTable.ENABLED == NoYes::Yes

            && WorkflowTable.TemplateName ==  'DSSH_SalesOrderWFType'

            && WorkflowTable.DATAAREA == curExt();

Comments

Popular posts from this blog

D365FO – AX – X++ –Refresh, Reread, Research, and ExecuteQuery

Create Inventory Journal through Code in D365FO X++

SalesLine Reservation in D365fo x++