dynamics-crm-2016

Dynamics CRM 2016 Plugin Global Variables [closed]

别来无恙 提交于 2019-12-03 14:15:47
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . I am simply incrementing a static global variable in a Dynamics CRM 2016 plugin and it shows strange random pattern as shown below. Why does it show strange behavior and pattern? Below is the code I am using. public class MyPlugin : IPlugin { private static int count = 0; public void Execute

Dynamics CRM 2016 Online Rest API with client credentials OAuth flow

时光怂恿深爱的人放手 提交于 2019-12-03 07:35:39
I'm trying to authenticate with Dynamics CRM 2016 Online and Azure Active Directory. I was able to follow all the steps here: https://msdn.microsoft.com/en-us/library/mt622431.aspx and https://msdn.microsoft.com/en-us/library/gg327838.aspx but these steps demonstrate how to set-up username authentication flow. I would like to use the client credentials flow. I created a new app in Azure AD - a web application. I have a client ID and an app key and I set-up the permissions for Dynamics CRM Online. I'm able to get the access token, but on subsequent calls I get this error: HTTP Error 401 -

Dynamics CRM 2016 Plugin Global Variables [closed]

牧云@^-^@ 提交于 2019-12-03 04:07:15
I am simply incrementing a static global variable in a Dynamics CRM 2016 plugin and it shows strange random pattern as shown below. Why does it show strange behavior and pattern? Below is the code I am using. public class MyPlugin : IPlugin { private static int count = 0; public void Execute(IServiceProvider serviceProvider) { try { if (_objContext.InputParameters.Contains("Target") && _objContext.InputParameters["Target"] is Entity) { WriteLog("Count value before increament: " + count, service); count = count + 1; WriteLog("Count value after increament: "+count, service); } } } } From the

Creating Dynamics CRM Plugin to execute external task

筅森魡賤 提交于 2019-12-02 17:53:06
问题 I am experimenting with CRM Plugins. My end goal is to create a plugin that will run another program that just adds project credentials to an excel file. For my sample project, I essentially just followed https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/tutorial-write-plug-in. The example provided here was excellent and taught me a lot about Plugins. The issue I am having is, whenever I try to execute code that was not involved in the tutorial, I get an error and the

Creating Dynamics CRM Plugin to execute external task

我怕爱的太早我们不能终老 提交于 2019-12-02 08:21:11
I am experimenting with CRM Plugins. My end goal is to create a plugin that will run another program that just adds project credentials to an excel file. For my sample project, I essentially just followed https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/tutorial-write-plug-in . The example provided here was excellent and taught me a lot about Plugins. The issue I am having is, whenever I try to execute code that was not involved in the tutorial, I get an error and the debug process doesn't even hit my break point. When I remove my personal code from the function, it

How to recover my plugins data from plugin-registration in crm?

天涯浪子 提交于 2019-12-02 02:50:45
When updating an assembly to plugin registration - in step 2 : select the plugin and workflow activities to register , if not all plugin selected they will be deleted with their steps and images from plugin registration, is there a way to recover a plugin that was deleted, is there an XML or a file that helps recover the steps and images? If you have earlier solution backup or take the latest solution by including the Sdk message Processing Steps from other environments & import to get the lost Plugin steps/images registration data. Also, as an Ops guide for troubleshooting & human readable

How to retrieve entity names in CRM 2016

倖福魔咒の 提交于 2019-12-02 01:41:13
问题 In our solution, we are building HTTP/ODATA requests dynamically. For example, we will build a URL that looks like this: [http://org....api/v8.1/]accounts(00000000-0000-0000-0000-000000000001)/primarycontactid?$select=fullname How do we dynamically get a list of all the entities such as 'accounts'? In 2011, we would simply execute against LeadSet/AccountSet/etcSet, what is the strategy in 2016? 回答1: I don't know if there is some "language" trick (obviously the name of the set is just plural

How to hide a vanilla button according to form state

孤街浪徒 提交于 2019-12-01 20:37:43
I am trying to hide my SAVE vanilla button according to form state. when the form state != create the vanilla button should not display. I tried different things but nothing works: I create a function in js that returns true if form is create state function isHideState(){ formstate = Xrm.Page.ui.getFormType(); if(formstate == formType.create){ return true;} else{ return false;} } I added a disply rule and connected it to my command that relevant to the js function : my rule is : FormStateRule and state: Create I connected my command to my vanilla button and yet it display even if the form is

CRM 2016 FakeXrmEasy N:N relationships

≡放荡痞女 提交于 2019-12-01 20:11:44
问题 I'm trying to use FakeXrmEasy to perform some unit tests for CRM Online (2016) and I'm having problems setting up one of my tests with an N:N relationship The following code sets up a Faked Context with 2 entities in it and initializes a Faked Organization Service: var entity1 = new New_entityOne(); var entity2 = new New_entityTwo(); var context = new XrmFakedContext(); context.ProxyTypesAssembly = Assembly.GetAssembly(typeof(New_entityOne)); context.Initialize(new List<Entity>() { entity1,

Using ADAL C# as Confidential User /Daemon Server /Server-to-Server - 401 Unauthorized

徘徊边缘 提交于 2019-11-27 04:55:08
Refering to not answered Questions: 401- Unauthorized authentication using REST API Dynamics CRM with Azure AD and Dynamics CRM Online 2016 - Daemon / Server application Azure AD authentication error to Web Api and Dynamics CRM 2016 Online Rest API with client credentials OAuth flow I need a communication between an Web-Service in azure cloud and Dynamics CRM Online 2016 WITHOUT any loginscreen! The service will have a REST api which triggers CRUD operations on the CRM (also I will implement an authentification) I think this is called "Confidential Client" or "Daemon Server" or just "Server-to