The purpose of this blog is for knowledge sharing and connect the relevant audience who are all into Microsoft Dynamics world.
Alfasith AX

اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا
Monday, February 22, 2021
How to achieve table relation in SQL without primary index 1:n
Thursday, February 18, 2021
RandomNumbers In AX /D365
Hi,
static void CreateRandomNumbersInAX(Args _args)
{
RandomGenerate randomGenerate;
;
randomGenerate = RandomGenerate::construct();
randomGenerate.parmSeed(new Random().nextInt());
info(int2str(RandomGenerate.randomInt(0,2147483647))); //RandomInt(RangeFrom,RangeTo)
//Note: Range from should be more than natural number 0 and more.
}
OutPut
1786303728
To understand the formula behind this random number please refer randomInt() in RandomGenerate class.
The formula in randomNumber generation is not similar to library function of dotnet.
Note: We cannot treat this randomGenerated Values as primary key, this may repeat with same range.
Regards,
Get a table ID in SQL - D365
Hi select ID from SysTableIdView where SysTableIdView .Name = 'CustTable' Regards,
-
Hi, AccountingDistribution ( accounting distribution 7452 ) AccountingDistributionEventTmp ( accounting distribution 100001 ) Accountin...
-
//< What is GUID> // GUID 16 bit large range of alphanumeric similar to RecID to treat as primary key of a table. static void CreateG...