dynamics-crm-2015

Creating a security role to be able to only create roles and users without having system admin role

落爺英雄遲暮 提交于 2019-12-06 06:21:15
CRM 2015: I want to be able to create a role for local IT to be able to add user accounts and assign roles. Regarding the 'adding roles' portion, is it simple enough just to create a role for local IT to 'write' to 'security' roles in the'business management' tab of 'security roles' at the user level? No, this is not that simple. User cannot give another user privilege higher than he has (it would be a serious security hole). So for example you have role to edit Security roles and you have Read access for Accounts in your Business Units. If somebody in your Business unit has no Read access and

CRM 2015 SDK : The deserializer has no knowledge of any type that maps to this name

一世执手 提交于 2019-12-05 23:33:56
I am currently working with CRM 2015 SDK. I am simply trying to update a value in C# with this SDK. But for some reasons that I try to figure out, there is a trouble when I save my context . There is the code : foreach (KeyValuePair<string, Account> account in dicAccount) { //Calcul of url/login/date/key/customer values string generatedUrl = Utilities.GenerateURL(url, login, date, key, customer); account.Value.new_Link = generatedUrl; if (!context.IsAttached(account.Value)) { context.Attach(account.Value); } context.UpdateObject(account.Value); } SaveChangesResultCollection results = context

Is It Beneficial To Call ExecuteMultipleRequest From Within A Plugin?

耗尽温柔 提交于 2019-12-05 07:57:14
I know the ExecuteMultipleRequest is a huge performance booster when performing batch updates from outside of CRM. What I don't know is if it is beneficial to call it from within a CRM plugin. My current understanding is that the main performance gain from using the ExecuteMultipleRequest is in the actual SOAP messaging costs. So (for updating 5000 records) rather than sending 5000 separate Soap messages (each having to be serialized, authenticated, transferred, etc), that all have to be sent to the server, you can send just one message with 5000 records. But when called from a plugin, you're

Dynamics CRM 2015 Online: SubGrid's control.SetParameter method is not available

泪湿孤枕 提交于 2019-12-04 19:26:21
I'm trying to populate a subgrid with fetchXml results in CRM 2015 online. One issue in the beginning was that document.getElementById("leadUmbrellaGrid"); returns null function filterSubGrid() { var leadwithSameNameGrid = Xrm.Page.getControl("leadUmbrellaGrid").getGrid();//HAVE TRIED window.parent.document.getElementById("leadUmbrellaGrid"); //grid to filter var currentleadId = Xrm.Page.data.entity.getId();; if (leadwithSameNameGrid == null) { setTimeout('filterSubGrid()', 500); return; } //fetch xml code var fetchXml = "<fetchxml goes here>"; leadwithSameNameGrid.control.SetParameter(

Display a pop-up window with status message of a succeeded workflow

大兔子大兔子 提交于 2019-12-02 22:02:02
问题 I've a form which runs a real-time workflow. When the workflow succeeds, I need to display the status message of the workflow in a pop-up window or an alert message box. Any ideas on how I can achieve this? 回答1: You can only show messages to the user from within a synchronous workflow if you cancel the workflow: When you set the status to canceled, you prevent the operation. An error message containing the text from the stop action status message will be displayed to the user with the heading

Display a pop-up window with status message of a succeeded workflow

房东的猫 提交于 2019-12-02 08:30:16
I've a form which runs a real-time workflow. When the workflow succeeds, I need to display the status message of the workflow in a pop-up window or an alert message box. Any ideas on how I can achieve this? You can only show messages to the user from within a synchronous workflow if you cancel the workflow : When you set the status to canceled, you prevent the operation. An error message containing the text from the stop action status message will be displayed to the user with the heading Business Process Error. There is no way of showing an informational message from a succeeded workflow. As

Prevent firing of OnChange function after field is updated on server side

江枫思渺然 提交于 2019-11-28 05:14:53
问题 When I register an OnChange function to a field, it gets fired if the field is updated on a plugin on the server side (On Dynamics Crm 2015) Can this behavior be prevented (In a supported way)? Example code: 1. Client side: Xrm.Page.getAttribute("org_myfield").addOnChange(function () { alert("org_myfield was changed") }); 2. Server side: internal void OnPreUpdateRequest(org_myentity target, org_myentity preImage) { target.org_myfield = "some value"; } 3. Result (after saving the record and

Trying to create lead in dynamic CRM using API in PHP

折月煮酒 提交于 2019-11-27 08:29:55
问题 I am trying to create lead in dynamic CRM using API in PHP but getting 400 html error. My dynamic CRM uses Active Directory authentication. I can successfully get the lead list using API but unable to create one. Here is my code: $xml = '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <Create xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <entity xmlns:a="http://schemas.microsoft.com/xrm/2011