Get Email information of current user/worker using x++ in D365FO.
private Email getToEmail()
{
HcmWorker hcmWorker;
// Get information of current user/worker
select firstOnly RecId, Person from hcmWorker
where hcmWorker.RecId == HcmWorkerLookup::currentWorker();
return hcmWorker.email();
}Keep Daxing!!
No comments:
Post a Comment