Sunday, June 9, 2024

changecompany in x++

 If you want to select/insert/update/delete data from specific company or legal entity, then changecompany keyword we can use. Below is sample code.


 public str ChangeCompanyTest()

 {

       changecompany('ART') // ART is the legal entity name

            {

                //Your  X++ Code

    }


}



No comments:

Post a Comment

Get Enum Id and Enum Value in D365FO using SQL and X++

 Below is the sql get enum id and enum value of a enum in D365 F&O using sql. SELECT   enumidtable . NAME           'Enum Name' ...