Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Employee/Manager link to Department

Posted on by 7

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 7 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,271 Most Valuable Professional 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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans