Thursday, October 14, 2010

How to find backend field name in ax2009

If you want to use DB field name sometimes to import data like dimensions, you might want to consider getting DB field names. Here is the script which does that.
static void BackendFieldName(Args _args)
{
    sysdictfield df;
    ;

    df = new sysdictfield( tablenum(CustTable),fieldNum(CustTable, Dimension),2);

    info(strfmt("%1",df.name(DbBackend::Native,2)));
}

No comments:

Post a Comment