Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Human Resources forum / Employee/Manager link ...
Human Resources forum
Suggested answer

Employee/Manager link to Department

Posted on by 5

Hi There

I need some help working out who the manager is for a department using the web api.

When I get the info of the endpoint: https://mydomain.sandbox.operations.dynamics.com/data/Departments I get the following:

"@odata.etag""W/\"JzE4MzE4ODI3MDYsNjg3MTk1MjEyMjY7MCwwOzEsNjg3MTk0NzcxMzYn\"",
            "PartyNumber""000002782",
            "PrimaryContactPhoneIsMobile""No",
            "PrimaryAddressDescription""",
            "PrimaryContactEmailIsIM""No",
            "Name""Software Developer",
            "PrimaryContactEmailPurpose""",
            "Memo""",
            "PartyType""OperatingUnit",
            "PrimaryContactFax""",
            "PrimaryContactFaxExtension""",
            "PrimaryContactPhoneDescription""",
            "PrimaryContactTelexDescription""",
            "PrimaryAddressCountryRegionId""",
            "PrimaryAddressStreet""",
            "PrimaryContactFacebook""",
            "PrimaryAddressCity""",
            "OrganizationType""OperatingUnit",
            "PrimaryContactURLPurpose""",
            "PrimaryContactURLDescription""",
            "PrimaryAddressValidTo""1900-01-01T00:00:00Z",
            "PrimaryContactEmail""",
            "PrimaryContactTwitter""",
            "PrimaryContactTelex""",
            "AddressLocationRoles""",
            "PrimaryContactURL""",
            "PrimaryContactPhonePurpose""",
            "PrimaryContactFaxPurpose""",
            "PrimaryAddressZipCode""",
            "SearchName""Software Developer",
            "PrimaryContactFacebookDescription""",
            "Language""",
            "PrimaryContactFacebookIsPrivate""No",
            "OperatingUnitTypes""OMDepartment",
            "PrimaryContactTwitterIsPrivate""No",
            "PrimaryAddressCounty""",
            "PrimaryContactTelexPurpose""",
            "PrimaryContactTwitterDescription""",
            "PrimaryContactFacebookPurpose""",
            "KnownAs""",
            "PrimaryAddressState""",
            "PrimaryContactLinkedInIsPrivate""No",
            "PrimaryContactTwitterPurpose""",
            "PrimaryAddressValidFrom""1900-01-01T00:00:00Z",
            "PrimaryContactLinkedIn""",
            "PrimaryContactLinkedInPurpose""",
            "PrimaryContactFaxDescription""",
            "PrimaryContactPhoneExtension""",
            "PrimaryContactPhone""",
            "PrimaryContactEmailDescription""",
            "PrimaryContactLinkedInDescription""",
            "PrimaryAddressCountryRegionISOCode""",
            "OperatingUnitNumber""253"
On the platform I have a manager for this Department but cannot see it in the api. Is there a different end point i should be looking at?

Any help would be appreciated.
Regards
  • JacquesSA Profile Picture
    JacquesSA 5 on at
    RE: Employee/Manager link to Department

    Hi Parag

    Thank you for getting back to me.

    I'll only have time tomorrow to look at it in detail and will revert back. That however is getting data from the tables.

    I'm currently using the OData web api found at mydomain.sandbox.operations.dynamics.com/.../, so I'm limited to the endpoints available there.

    If you dont mind, please let me know in the meantime as to where I can find the department manager as well.

    Thank you.

    Regards

  • Suggested answer
    Parag Chapre Profile Picture
    Parag Chapre 12,231 Super User on at
    RE: Employee/Manager link to Department

    Hi JacquesSA,

    Are you looking for department manager or employee's manager?

    If you are looking for employee's manager then you can see below post.

    paragchapre.com/.../

    If you can show me where you can find the department manager then I can help you to find the right API's.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans