Local Macro's in AX

Today I will demonstrate you that how to create Local Macro's and use them in AX.

Local Macro’s 

static void Local_Macro(Args _args)
{
// Define the local macro

#localmacro.WelcomeMessage
{
info("Welcome to Carz Inc.");
info("We have the best offers for rental cars");
}
#endmacro;
// Use the local macro
#WelcomeMessage
}

Comments