Wednesday, 20 June 2018

job to Update Internal Customers - custTable - AX2012 in all companies (crosscompany)

UpdateInternalCustomers

using cross Company in AX2012 we can update the custTable Table in all the companies in AX

    static void KTI_UpdateInternalCustomers(Args _args)
    {
        CustTable   custTable;
        DataArea    dataArea;
   
        ttsBegin;
        while select forupdate crossCompany * from custTable
            where custTable.AccountNum LIKE "I*"  &&
                  custTable.CustGroup  == "INT"
        {
            changeCompany(custTable.dataAreaId)
            {
               custTable.PriceGroup        = "INT";
                custTable.SuppItemGroupId   = "INT";
                custTable.doUpdate();
            }
        }
        ttsCommit;
    }

job to Update Internal Customers - custTable - AX2012 in all companies (crosscompany)

UpdateInternalCustomers using cross Company in AX2012 we can update the custTable Table in all the companies in AX     static void KTI_...