Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Friday, June 27, 2014

How to fetch the standard notes for concern module in Dynamic AX

Hi,

FormLetterRemarks::find(companyinfo::languageId(),
 FormTextType::PurchPurchaseOrder).Txt;
// Here I used to fetch the currecnt user language as 1st parameter
// and for the Purchase Order Notes as 2nd parameter

Regards,

Tuesday, June 24, 2014

Job to print all the roles in Dynamic AX

Hi,

static void AlfasithTotalRolesInAX(Args _args)
{
    SecurityRole        role;
   while select role order by Role.Name asc
    {
        info(strFmt("%1 --- %2",Role.Name,Role.RecId));
    }
    pause;

}

Regards,

Get a table ID in SQL - D365

Hi select ID from SysTableIdView where  SysTableIdView .Name = 'CustTable' Regards,