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,

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...