SqlDataDictionary.name Method [AX 2012]

Translates any object name into a valid SQL database object-name; that is, valid for the database currently connected.

public str name(
    str bmsname, 
   [FieldId fieldId, 
    int arrayindex])

Run On

Server

Parameters

bmsname
Type: str
A string that contains the Microsoft Dynamics AX object name.
fieldId
Type: FieldId Extended Data Type
A field, or object identification (0 for not applicable) used for uniquely identifying an object; optional.
arrayindex
Type: int
A field index (0 for not applicable), that is, an array field's arrayindex'th entry, such as Dimension[2]; optional.

Return Value

Type: str
The valid object name.

Because names may be truncated, a unique object identifier may be supplied. Also, a third parameter enables the method to return discrete SQL field names for Microsoft Dynamics AX array fields.

Community Additions

ADD
Show: