Thursday 24 December 2015

get firstName,middleName and lastName in AX 2012 using X++

static void getName(Args _args)
{
    str firstName;
    str middleName;
    str lastName;
    ;
 
    [firstName, middleName, lastName] = DirPerson::splitNameParts("Test Test1 Test2");
 
    info(strFmt("%1",firstName));
    info(strFmt("%1",middleName));
    info(strFmt("%1",LastName));
}

No comments:

Post a Comment