How can I get business unit details of the logged-in user with javascript? I tried Xrm.Utility.getGlobalContext().userSettings but I couldn’t get any information for business unit Answer If you write Xrm.Utility.getGlobalContext().userSettings I assume you are working with client-side javascript inside a Model-driven app. From the userSettings you can get the userId property, it returns the GUID of the current user. After
Tag: dynamics-crm
Populate dynamics CRM Activity Type sender from field using custom JavaScript?
I am trying to populate the “From” look up field using custom JavaScript in Dynamics CRM. I’m new to JavaScript and Dynamics really struggling to do this. Below is a screenshot of my code and solution. I also tried the solution below it doesn’t work. Please advise and help. Answer I tried and this worked for me. Make sure to
Dynamics CRM 365 WebApi 8.2 AddListMembersList method
Is there any example how to call AddListMembersList? I tried with: but I get error: “error”:{ “code”:””,”message”:”Request message has unresolved parameters.”,”innererror”:{ “message”:”Request message has unresolved parameters.”,”type”:”Microsoft.Crm.CrmHttpException”,”stacktrace”:” bei Microsoft.Crm.Extensibility.OData.CrmODataRoutingConvention.SelectAction(ODataPath odataPath, HttpControllerContext controllerContext, ILookup`2 actionMap)rn bei System.Web.OData.Routing.ODataActionSelector.SelectAction(HttpControllerContext controllerContext)rn bei System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)rn bei System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()” Any advice? Answer Exact answer can be found here: http://butenko.pro/2018/03/01/how-to-add-records-to-marketing-list-using-webapi/ From link adjusted to my example:
Tweak CRM Sitemap to have different URL navigations for different environments
We want to have different Sitemap subarea Url, so that the Sitemap can be independent of environments & worryfree when we refresh the environments from higher region to lower. Even deployments can be error free & can avoid manual step in post deployment activity. Dev: UAT: Any idea to do that? Answer I ended up doing this workaround as we