web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

I have the same question (0)
  • Suggested answer
    Svetlana Kosheleva Profile Picture
    on at
    RE: Get pending time offs assigned to manager through web api

    Hi,

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

    Thank you!

  • Community Member Profile Picture
    on at
    RE: Get pending time offs assigned to manager through web api

    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.

  • Verified answer
    Svetlana Kosheleva Profile Picture
    on at
    RE: Get pending time offs assigned to manager through web api
    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"
        }
      ]
    }

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,239

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 903 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 604 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans