web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Get pending time offs assigned to manager through web api

(0) ShareShare
ReportReport
Posted on by

Hi Team,

    How to get the pending time offs assigned to manager through web api, i tried using following api

server.talent.dynamics.com/.../WorkflowWorkItems 

But able to get only workItem history, but nothing relating to time offs

  • Verified answer
    Svetlana Kosheleva Profile Picture
    Microsoft Employee on at
    They should try this:
     
    Hi Samath,
    Please try this:
    https://<hostname>.hr.talent.dynamics.com/namespaces/<namespace>/data/LeaveRequests?$filter=Status eq cast('Submitted', Microsoft.Dynamics.DataEntities.LeaveRequestApprovalStatus)
     
    The LeaveRequests entity is used to retrieve Leave requests. The Status field determines the approval status of the request, where Submitted means it's been submitted to the workflow and is pending approval.
     
    The response from the above call will look like this:
     
    {
      "@odata.context":"https://<hostname>.hr.talent.dynamics.com/namespaces/<namespace>/data/$metadata#LeaveRequests","value":[
        {
          "@odata.etag":"W/\"JzU1MjI4MzMzNCw1NjM3MTQ1MzU3OzEsNTYzNzE0NTQ2Mic=\"","dataAreaId":"usmf","RequestId":"USMF-000027","LeaveType":"PTO","LeaveDate":"2020-03-27T12:00:00Z","ReasonCodeId":"","IsSubmittedByHumanResources":"Yes","PersonnelNumber":"000020","RequestDate":"2020-03-27T12:00:00Z","Comment":"","IsSubmittedOnBehalfOf":"No","Status":"Submitted","IsSubmittedByManager":"No","Amount":1,"SubmittedByUser":"gboyko","HalfDayDefinition":"None"
        },{
          "@odata.etag":"W/\"JzU1MjI4MzMzNCw1NjM3MTQ1MzU3OzEsNTYzNzE0NTQ2Myc=\"","dataAreaId":"usmf","RequestId":"USMF-000027","LeaveType":"Sick","LeaveDate":"2020-03-28T12:00:00Z","ReasonCodeId":"","IsSubmittedByHumanResources":"Yes","PersonnelNumber":"000020","RequestDate":"2020-03-27T12:00:00Z","Comment":"","IsSubmittedOnBehalfOf":"No","Status":"Submitted","IsSubmittedByManager":"No","Amount":1,"SubmittedByUser":"gboyko","HalfDayDefinition":"None"
        }
      ]
    }
  • Community Member Profile Picture
    on at

    Hi Svetlana Kosheleva,

          Thanks for the reply, i tried the above implementation before. But is there a way to pass the manager Id , so only the time offs assigned to that particular manager can be retrieved.

  • Suggested answer
    Svetlana Kosheleva Profile Picture
    Microsoft Employee on at

    Hi,

    Please raise a support ticket MS support team and we will investigate it further.

    Thank you!

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 360 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans