dynamics-crm

InvalidPluginExecutionException dialog does not show up - CRM 2011

风流意气都作罢 提交于 2019-12-11 09:45:00
问题 I have a Plugin on the Creation, Updating, and Deletion of the OpportunityProduct entity in the CRM 2011. I want to through exception on the success of some operations, means want to display dialog. It is working fine for Update and Delete. But it is not working fine for the Creation of OpportunityProduct , it is not throwing exception in the dialog. It is showing Exception: “ An error has occurred, Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community

MS Dynamics CRM Global Search Getting Related Entities

早过忘川 提交于 2019-12-11 08:46:10
问题 I am trying to set up a global search where the user can search by invoice number and it shows the invoice AND related order with OOB solutions. EDIT Version: 2015 Unsure of when installed but was updated recently 回答1: Global Search works on top of Quick Find view & Find columns specified in particular entities. The searchable entities & its display order can be configured in System settings. In your scenario, Add the entities Order & Invoice to searchable entities list (move it to top). Then

Date Showing Up Different in MS Dynamics CRM than that of SQL-Server

时光毁灭记忆、已成空白 提交于 2019-12-11 08:29:42
问题 My string dates are as follows in YYYYMM format: 201008 201009 201010 201011 201012 ... The following is my CONVERT statement in my stored procedure: CONVERT (datetime, @FileName + '01', 112) my results are showing up fine in SQL-Server as follows 2010-10-01 2010-11-01 2010-12-01 ... However, in MS Dynamics CRM they are showing up as the last day a month earlier (corresponding with the previous SQL-Server results) as follows: 9/30/2010 10/31/2010 11/30/2010 ... What the heck is going on here?

Access local file from Dynamics 365 and local resource not allowed

夙愿已清 提交于 2019-12-11 08:08:14
问题 In CRM we have a projects list and there are associated files with these projects on our network drive. Didn't want to setup Sharepoint due issues we have had with it in the past. Anyway, in each of these project records we want to add the network URI for that project's files so the user can click on the link from the CRM record and be brought to that direct. So something like X:\Projects\contoso . Came across this suggestion for accomplishing this: http://blog.zealots.solar/?p=54 Basically

How to identify Header Section in CRM Form?

泄露秘密 提交于 2019-12-11 08:03:52
问题 Is there a way to tell if the section is a header in CRM Form? We're on Microsoft Dynamics CRM 2016 and I have a requirement to disable all fields on the Contact form when a certain condition is met. I'm using the code below and so far the code is working. var attributes = Xrm.Page.data.entity.attributes.get(); for (var i in attributes) { var myattribute = Xrm.Page.data.entity.attributes.get(attributes[i].getName()); var myname = myattribute.getName(); if (Xrm.Page.getControl(myname) != null)

What does EntityCollection return if FetchXML (AGGREGATE SUM) Query didn't find anything?

混江龙づ霸主 提交于 2019-12-11 07:58:41
问题 I am running a FetchXML query (aggregate='true' for the fetch and aggregate='sum' for all attributes) and passing it to RetreiveMultiple in my C# plugin code. What if the Fetchxml didn't find anything, what does service.RetrieveMultiple retrieve in this case? In the debugger, there is a NullReference exception . FetchXML Builder returns this: I need to handle a case where one of the meals in the contract lines is missing... In my plugin I have three Fetchxml expressions that Retrieve data

Fetching irregular data from CRM Dynamics

谁都会走 提交于 2019-12-11 07:57:44
问题 I've created a fetch XML that gives me all the contacts in a marketing list. I also would like to get the name of the list baked into the output. I've found two ways to achieve that, none of which is satisfactory to the pedantic me. Go to the DB and fetch the name as a separate request. Have an extra column containing the name of the marketing list for each contact. I'll be getting multiple (maybe even all) marketing lists from CRM so the second version seems most suitable as I'll make one

CrmDataContext.GetEntities query - ERROR: 0x80040204 - Invalid user auth

[亡魂溺海] 提交于 2019-12-11 07:43:01
问题 I created domain user 'jsmith' in Active Directory and i've added that domain account as a user in Dynamics CRM. My goal here is to execute code with a service account that is in the PrivUserGroup for the organization while impersonating 'jsmith'. I instantiate the CrmDataContext by passing it an instance of CrmConnection. When calling the constructor of the CrmConnection I pass it the name of my connection string in the application config file then I set the ImpersonatedUser property to the

FetchXML with data from many-to-many-relations

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 07:38:33
问题 I've got my solution working with a serious drawback that it makes a lot of smaller calls to the CRM. Instead, I'd like to make a single one (or at least only a few) and instead allow for redundancy. I'd like to obtain information consisting of all the contacts that are on any marketing lists combined with the name of those lists. One can also view it as listing all the marketing lists and their members. In case a contact is represented in multiple marketing lists, I'd like it to be listed

Connect to Dynamics CRM 2016(On-Premise) from Android

旧时模样 提交于 2019-12-11 07:37:29
问题 I want to integrate Android application with Dynamics CRM 2015 Online and On-Premise. For online version Connect Android App to Dynamics CRM using Web API this works fine, But ADAL dependency is not supported for OnPremise. Are there any resources which show the basic steps to access the Microsoft CRM on-premise. Any sample code around same for connecting to REST endpoint will be helpful. 回答1: Setup IFD for your on-premise deployment. Authenticate to Microsoft Dynamics 365 with the Web API