Announcements
No record found.
Hello everyone,
I'm facing an issue related to Leave Requests in Dynamics 365.
I have a scenario where I need to submit a Leave Request on behalf of an employee using X++ code. Normally, in the system, this action is done through the standard interface, and the request goes through a specific workflow.
As shown in the screenshots, I can manually create a Leave Request through the UI. However, when I investigated the backend logic, I found that the submission process relies on a class named LeaveRequestSubmitter.
LeaveRequestSubmitter
Unfortunately, this class is marked as internal, which means I cannot access or use it directly in my X++ code to mimic the same behavior as the standard system process.
internal
My question is: Is there a supported or recommended way (or logic) to programmatically create a Leave Request for a specific worker using X++? Thanks in advance!
Kind regards, Adis
If this helped, please mark it as "Verified" for others facing the same issue
Keep in mind that it is possible to mark more than one answer as verified
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 608
André Arnaud de Cal... 591 Super User 2026 Season 1
CP04-islander 430