public Name getParentPositionWorkerName(HcmPositionRecId _positionRecId) HcmWorker hcmWorker; HcmPositionWorkerAssignment workerAssignment; HcmPositionHierarchy hcmPositionHierarchy; utcdatetime now = DateTimeUtil::getSystemDateTime(); // 1. Find the parent position in the hierarchy // 2. Join to the assignment table to find who sits in that parent position // 3. Join to the worker table to get the name select firstonly * from hcmWorker join workerAssignment where workerAssignment.Worker == hcmWorker.RecId && workerAssignment.ValidFrom <= now && workerAssignment.ValidTo >= now join hcmPositionHierarchy where hcmPositionHierarchy.ParentPosition == workerAssignment.Position && hcmPositionHierarchy.Position == _positionRecId && hcmPositionHierarchy.ValidFrom <= now && hcmPositionHierarchy.ValidTo >= now; return hcmWorker.name(); } |
Friday, 16 January 2026
Get Parent Position Worker Name from Current Worker Position | D365FO X++
Monday, 12 January 2026
To understand AI, think in layers
🚀 Many people think AI progress is about bigger models or new buzzwords.
But that’s not the real shift.
To understand AI, think in layers:
🔹 Rules-based AI followed instructions written by humans.
No thinking. No learning.
🔹 Deep Learning learned patterns from data.
It didn’t know things — it recognized them.
🔹 Generative AI creates content.
Text, images, code — impressive, but mostly reactive.
You ask → it responds.
🔹 Agentic AI is different.
It doesn’t just answer.
It plans steps, chooses tools, and takes action to reach a goal.
That’s why this matters 👇
The real breakthrough isn’t what AI can say.
It’s what AI can do next without being told.
So instead of asking:
❌ “Is this the newest model?”
Start asking:
✅ “Can this AI think ahead and act on its own?”
That shift — from response to action — is where the next wave of AI is coming from.
Get Parent Position Worker Name from Current Worker Position | D365FO X++
In this blog, we explore how to fetch the Parent Position Worker from a Current Worker Position in D365FO. The solution revolves around c...