How to Create GUID in Dynamics Ax


Actually GUIDs are used in several places in Ax, like AIF Service, exchangeRateProvide etc.

You can create your own GUID with Ax as well, if you have a need for one. The WinAPI class has a method for that.

Example:

static void CreateGUID(Args _args)
{
    str myGUID;
    ;
    myGUID=Winapi::createGUID();
    info(myGUID);
}

This method depends on the kernel function newguid() to create a globally unique identifier.
Note that you can have the GUID with or without the { } or () or -.

Related Posts

Previous
Next Post »

Thanks for comments.....