Friday, 18 January 2013

Microsoft Dynamics AX 2012 R2 - configurationKeyStr Function


Retrieves the name of a configuration key as a string.

Function

  • str configurationKeyStr(str keyname)

Parameters

  • Parameter: keyname
  • Description: The name of the configuration key.
Use this function instead of literal text to retrieve a string that contains the configuration key name. If the key does not exist, the function generates a syntax error at compile time.

Return Value

  • The name of the configuration key.

Example

  • X++
static void configurationKeyStrExample(Args _args)
{
    str s;
    ;
    s = configurationKeyStr(AIF);
    print s;
    pause;
}

My above blog is based on Microsoft's Official information.

I hope this blog about 'Microsoft Dynamics AX 2012 R2 - configurationKeyStr Function' was informative. Please feel free to leave your comments.

1 comment:

  1. yea.. function is generating a syntax error and I am unable to resolve this error :/

    ReplyDelete