hello evryone i'm new to D365 F&O and i have a task where i need to create a field in a dialog that shows the name of the workers under the current user
So i have this line of code
HcmPositionWorkerAssignment::doesWorkerReportToManager(hcmWorker.recId,HcmWorker::find(HcmWorkerLookup::currentWorker()).recId,true);
that is supposed to return true if a worker is under the current user.
So My problem is i don't know how tu use it in a lookup querry
My dialog table name NouvelleMesuresDialogTmp and the field is Employee
any help would be nice thank you