Trust Relationship Primary Domain Error

You may come across this error when a server or workstation gets out of sync with the domain controller: “The trust relationship between this workstation and the primary domain failed”. One way to resolve this is to rejoin the machine with the domain. However this can cause other issues. An easier way toresolve this, is to first log into the machine as a local administrator and then run Windows PowerShell … Continue reading Trust Relationship Primary Domain Error

WCF Fault Exception

In this example, we will show how to use the FaultException when catching errors in a WCF service. First, create a new WCF service: Our service will be a calculator, that will perform a divide operation. We will rename the files created so we have: Calculator.svc ICalculator.cs In ICalculator, change the code to be below. This is our service contract and operation contract: using System; using System.Collections.Generic; using System.Linq; using … Continue reading WCF Fault Exception

WCF Specify Names of Contracts

Consider a WCF service that returns some text that you entered. The service has a contract called IService1 and an operation called GetData. When we run the service in our test client, we see: The code for this is: using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace Carl.TestWCF { [ServiceContract] public interface IService1 { [OperationContract] string GetData(int value); } } Let’s say we … Continue reading WCF Specify Names of Contracts

JavaScript in the Dynamics CRM Developer Toolkit

The Dynamics CRM developer toolkit allows you to manipulate JScript resources as well as other artifacts. In Dynamics CRM, create a new solution and add a new Web Resource: In Visual Studio, from the Developer Toolkit, create a new project: Now in your project, right click and select Add to packaging project: You can now add code to the file from within Visual Studio: Update and save the .js file: … Continue reading JavaScript in the Dynamics CRM Developer Toolkit

Namespaces in JavaScript

Namespaces are used to help organize code into logical groups. An example of a namespace is MyCo.ERP.Customers, which may contain code regarding ERP Customers. I could also have a namespace called MyCo.CRM.Customers. When writing an app, I can reference each piece of code using their fully qualified name to avoid confusion of what methods I would like to run. In languages like C#, namespaces are easily implemented. In JavaScript, we can … Continue reading Namespaces in JavaScript

Dynamics CRM SDK, Templates and Developer Toolkit

To install the Dynamics CRM SDK, go through these steps. First, download the relevant SDK version. Here we will install for Dynamics CRM 2013. http://www.microsoft.com/en-gb/download/details.aspx?id=40321 Select to download: Run the downloaded exe: Click to accept: Select a location to extract the files. The SDK files will then be extracted: From here, you can browse to the Templates folder to install the SDK Templates for Visual Studio. Run the VSIX file: … Continue reading Dynamics CRM SDK, Templates and Developer Toolkit

Dynamics CRM Option Sets and Power BI

When using Power BI to connect to Dynamics CRM. there is a problem in that option set values are retrieved as their number values, not their actual text label value. The CRM OData feed returns this value, so it is up to the developer to get the actual text value. Doing so isn’t so easy, as we can’t simply look it up. There are different ways to get around this issue, including doing a … Continue reading Dynamics CRM Option Sets and Power BI

Dynamics GP Dictionaries List

Below is a list of native and 3rd party applications and their associated dictionaries. Name Id Main Dictionary Forms Dictionary Reports Dictionary Publisher Dynamics 0 DYNAMICS.DIC FORMS.DIC REPORTS.DIC Microsoft Advanced Go Tos 4612 ADVGOTO.DIC F4612.DIC R4612.DIC Microsoft Advanced Security 3104 ADVSECUR.DIC ADVS_FRM.DIC ADVS_RPT.DIC Microsoft Control Account Management 2416 CAM2416.DIC CAMFORM.DIC CAMRPTS.DIC Microsoft Cash Flow Management 1632 CFM.DIC CFMFORM.DIC CFMRPTS.DIC Microsoft Collections Management 1157 CPro.dic F1157.DIC R1157.DIC Microsoft CopierSeries 2992 QK2992.DIC … Continue reading Dynamics GP Dictionaries List

Connecting to CRM Online using the Dynamics CRM 2016 SDK

The Dynamics CRM SDK for 2016 comes with many samples to get you up and running. One of the samples is the QuickStart projects. These projects are applications that will connect to Dynamics CRM and perform certain operations in Visual Studio projects. To run these samples, after installing the SDK, go to the folder SDK\SampleCode\CS\QuickStart. Note – I am running the C# sample. To run the QuickStart using WinForms, first open the app.config file: Uncomment … Continue reading Connecting to CRM Online using the Dynamics CRM 2016 SDK

Dynamics GP Reset System Password

To reset the Dynamics GP system password to blank, run the following query in SQL Server Management Studio: UPDATE DYNAMICS..SY02400 SET DMYPWDID=1,PASSWORD = 0x00202020202020202020202020202020