dynamics-crm

How do you enable logging for CrmServiceClient in the Xrm Tooling toolkit?

橙三吉。 提交于 2020-01-11 06:06:42
问题 I'm having issues trying to log in to a CRM Online organization through the use of the latest version of the Xrm Tooling nuget package using the connection string constructor from a custom powershell cmdlet. I'm receiving a rather unhelpful "Unable to Login to Dynamics CRM" error message and am attempting to enable tracing to troubleshoot but have not been able to enable it by modifying the .dll.config file like the below (taken from an XrmToolbox issue on GitHub): <?xml version="1.0"

Error registering plugins and/or workflows. Plug-in assembly does not contain the required types or assembly content cannot be updated

橙三吉。 提交于 2020-01-11 04:48:07
问题 I implemented one custom workflow in in Visual Studio 2010 using CRM 2011 Developer Toolkit. It was working fine with system generated namespace. But, when I changed the namespace of my project, its throwing an error "Error registering plugins and/or workflows. Plug-in assembly does not contain the required types or assembly content cannot be updated." while deploying it. And I have changed the namespace in .crmregister file, project properties and in source code. Then whats the problem here.

How can I connect to a Microsoft Dynamics CRM server using Python?

一个人想着一个人 提交于 2020-01-10 11:46:30
问题 The Microsoft Dynamics CRM service uses NTLM authentication, which makes connecting to it from a python process using suds somewhat complicated. I'm looking for a code sample that will: Send and receive the response from a RetrieveAttributeRequest Send and receive the response from an Execute request. This must use Python 2.6 or Python 2.7, not Python 3. I already have a working implementation that uses curl to do this, but it's flaky at the best of times, and as part of some other work I

crm dynamics 2016 limit the number of files in a note

不想你离开。 提交于 2020-01-06 07:25:13
问题 I'm trying to attach a document to the opportunity. My question is Can the note be altered so that only one file can be attached and not several? some example? 回答1: You can write a plugin on Pre-operation stage of Annotation Create message to evaluate if there is an attachment already for that particular Opportunity & stop the execution by throwing InvalidPluginExecutionException exception. You can attach only one file in each Notes entry. So this should work. 来源: https://stackoverflow.com

C# MSCRM SDK QueryExpression Default Order

三世轮回 提交于 2020-01-06 07:10:54
问题 I would like to know what the default sort order of the QueryExpression object. I can't seem to find it anywhere 回答1: I believe the default sort order will be by the ID (primary key). That's the clustered index of each entity table. When no order is specified, FetchXML returns records sorted by GUID. 来源: https://stackoverflow.com/questions/46595370/c-sharp-mscrm-sdk-queryexpression-default-order

Microsoft Dynamics CRM 365 calling an action via JavaScript asynchronously

旧街凉风 提交于 2020-01-06 06:31:51
问题 Is there a way to call an action via javascript without the use of third party scripts? I found this https://github.com/PaulNieuwelaar/processjs However, I cannot use third party libraries. UPDATE: Here is some sample code that demonstrates an asynchronous call to an action via JavaScript. A important point to remember is to make the last parameter of the open method of the request to true . req.open(consts.method.post, oDataEndPoint, true); // plugin public class RunAsync : CodeActivity {

How to migrate or move activites between contacts in Dynamics CRM

纵饮孤独 提交于 2020-01-06 05:14:28
问题 Two different contacts had the same email address, after an automatic record creation rule was applied, CRM associated email activities to the wrong contact. I've updated the email address value in one of the contacts (the wrong contact) but it has activities that do not belong to it and I need to move them to the right contact. How can move activities between two contacts? I cannot merge the contacts as they are legitimate contacts. I did try to update the partyid field of the activityparty

Dynamics CRM - How to get the second page of a fetchXml query beyond the 5000 elements?

[亡魂溺海] 提交于 2020-01-06 04:23:47
问题 I'm having a small issue with Dynamics CRM 2016 and fetchXml. In the CRM I have around 35K users. Since it seems Dynamics is limited to retrieve a maximum of 5000 elements per round, I needed to use the pagingCookie feature to retrieve the second page and so on. For example, to retrieve the second page of these records (from user 5001 to 10000) I had to retrieve first the users from 1 to 5000, obtain the paging cookie and relaunch the process with this cookie. My question is: This requires

Use extended REST functions like contains in Dynamics CRM

醉酒当歌 提交于 2020-01-06 03:01:09
问题 As I noticed, fetching data in Dynamics CRM with REST is a lot faster then with SOAP especially for big data. Since I'm new to this topic (REST) I want to ask if it's necessary to include any additional library to use functions in my query for instance "contains". If I send the query: XrmServiceToolkit.Rest.RetrieveMultiple("ActivityPointerSet", "$filter=contains(Subject,'Test')&$top=10", function(results){ console.log(results); }, function(error){ console.log(error); }, function onComplete()

Connect to Dynamics 365 Customer Engagement web services using OAuth

元气小坏坏 提交于 2020-01-06 01:22:51
问题 I am trying to connect to dynamics 365 by using the reference given in the link below https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/connect-customer-engagement-web-services-using-oauth After User authentication at the below code, control goes to catch block saying "The request body must contain the following parameter: 'client_secret or client_assertion'" AuthenticationResult result = authContext.AcquireToken(resource, clientId, new Uri(redirectUrl)); I understand