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
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.
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-
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156