Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to navigate Entities based on Logged in user business unit? MS CRM V9 online

Posted on by Microsoft Employee

We have multiple business units within CRM and want to implement a functionality like whenever a user is trying to create a new account we need to retrieve his/her business unit and and if the value returned for business unit is say "ABC", based on this value we need to display an alert message saying "you should create an account trough Lead, please click on OK to navigate to new Lead form". And after clicking on "OK" , user should be automatically redirected to new lead form. 

I know we can use JavaScript to get Logged in User BU, but want to know how to navigate entity forms based on response from the user. 

any leads would be appreciated!

TIA

*This post is locked for comments

  • Verified answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: How to navigate Entities based on Logged in user business unit? MS CRM V9 online

    Like you said - You can check the BU of current login user in JS then you can prompt the user with Alert dialog or Confirm dialog.

    docs.microsoft.com/.../openconfirmdialog

    Based on the response - you can write logic in success callback to navigate to new entity form.

    docs.microsoft.com/.../openform

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: How to navigate Entities based on Logged in user business unit? MS CRM V9 online

    Hi ,

    If you are using v8.2 then use-

    Xrm.Utility.openEntityForm("lead");

    Check below reference  for more details-

    mahadeomatre.blogspot.com/.../xrmutility-functions-openentityform.html

    If you are using v9.0 then use

    Xrm.Navigation.openForm

    Check below reference  for more details-

    docs.microsoft.com/.../openform

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

Featured topics

Product updates

Dynamics 365 release plans