How to create Table fields using X++ Code

 internal final class Class2

{

    public static void main(Args _args)

    {

        TreeNode treeNode;


        AOTTableFieldList fieldList;


        #AOT


        treeNode = TreeNode::findNode(@'\\Data Dictionary\Tables\Sports\');


        fieldList = treeNode.AOTfindChild('fields');


        fieldList.addString("StudentName");


        fieldList.addInteger("Mark1");


        fieldList.addInteger("Mark2");


        SqlDataDictionary::synchronize();


    }


}

Comments

Popular posts from this blog

How to Create a wizard in x++ d365

X++ code to CREATE AND POST A TRADE AGREEMENT IN MICROSOFT DYNAMICS 365 in D365 F & O

x++ code to submit and approve and reject the invent movement workflow in d365 F&O