Показать сообщение отдельно
Старый 05.11.2012, 18:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
Malaysia: Renaming the primary key
Источник: http://axmas.blogspot.com/2012/11/re...imary-key.html
==============



//Open the AOT, create a new job named CustAccountRename, and enter the
//following code.


static void CustAccountRename(Args _args)
{
CustTable custTable;
select firstOnly custTable
where custTable.AccountNum == '1103';
if (custTable.RecId)
{
custTable.AccountNum = '1103_';
custTable.renamePrimaryKey();
}
}



Источник: http://axmas.blogspot.com/2012/11/re...imary-key.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.