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

The Moment Tokens, Vectors, and Models Click, AI Starts Making Sense

  You've probably heard these terms dozens of times by now. They're showing up in AI discussions, Copilot demos, Azure OpenAI conver...

Powered by Blogger.