Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Get Logged in User Business Unit

Posted on by Microsoft Employee

I need to get Logged in User Business Unit Name by JavaScript It is possible ?. If any one did that process means please send the code it was very important for my project. Please guide me.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Get Logged in User Business Unit

    Thanks

  • Verified answer
    Gee Bee Profile Picture
    Gee Bee 11,397 on at
    RE: Get Logged in User Business Unit

    Hi

    Try the following, but change Xrm.Page.context.getServerUrl() to Xrm.Page.context.getClientUrl()

    Also use Web API equivalent.

    social.msdn.microsoft.com/.../how-do-i-get-a-users-business-unit-crm-2011-javascript

  • Verified answer
    M.Azwar Alam Profile Picture
    M.Azwar Alam on at
    RE: Get Logged in User Business Unit

    Hi check following link

    social.microsoft.com/.../how-do-i-get-a-users-business-unit-crm-2011-javascript

    microsoftcrmtechie.blogspot.com/.../get-business-unit-id-for-user-crm.html

    Mark answer as verified, if it works for 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans