Sunday, October 26, 2014

Get Worker Dept from Worker in ax 2012

// Get Worker Dept from Worker in ax 

display Name WorkerDepartmentName()
{
    HcmWorker               hcmWorker;
    str                     deptName;

    select RecId from hcmWorker
            where hcmWorker.RecId == this.UpdatedByWorker;

     deptName = hcmWorker.primaryDepartmentName();

    return deptName;

}

No comments:

Post a Comment

Convert Call stack to readable format in D365FO X++

//Input --container _xppCallStack = xSession::xppCallStack();  Public static str POL_formatXppCallStack(container _xppCallStack, int _skipFr...