Custom Sales Order Workflow Not working fine in D365fo x++

Custom Sales Order Workflow not working fine in D365fo x++ 

write this code in DataSource COC

Code: 

 [ExtensionOf(formDataSourceStr(SalesTable, SalesTable))]
final class DSSH_SalesTable_Salestable_Extension
{
    public int active()
    {
 
        int ret;
 
        ret = next active();
 
        FormDataSource ds = this;
        FormRun salesTablef = ds.FormRun();
        salesTablef.design().workflowEnabled(true);
        //salesTablef.design().controlName(
        salesTablef.design().controlName("WorkflowActionBarButtonGroup").visible(true);
        salesTablef.design().workflowDataSource(this);
        salesTablef.design().workflowType("DSSH_SalesOrderWFType");
        return ret;
    }

}

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++