Dict types usage in AX


Dict types are used to manage EDT’S. They are used to fetch the properties of an EDT.
Below code helps You in finding out the label name of an EDT used to generate a Number sequence ‘Inve_77′.

static void Dicttypes(Args _args)
{
                dicttype dictype;
                NumberSequenceReference NumberSequenceReference;
                ;
                select firstonly NumberSequenceReference
                where NumberSequenceReference.NumberSequence == ‘Inve_77′;
                if (NumberSequenceReference)
                {
                                dictype = new dicttype(NumberSequenceReference.DataTypeId);
                }
                info(dictype.label());
}

No comments

LCS → Power Platform admin center: self-service environment migration is in public preview (D365 Finance)

Microsoft now lets you move management of your F&O environments from Lifecycle Services to the Power Platform admin center, one environm...

Powered by Blogger.