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;
}
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;
}
No comments:
Post a Comment