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

DeepSeek-R1: The AI Revolution Everyone’s Talking About!

  In the ever-evolving world of artificial intelligence, a new player has emerged, challenging the giants and rewriting the rules of innovat...

Powered by Blogger.