Learning

No idea how this works. But it works.

Registered a service endpoint via the CRM Plugin Registration Tool.
Set the endpoint to be an Azure Service Bus Queue.
Set the message to be sent as JSON.
Message is sent once an entity (account in this case) is created.
I am VERY aware this is Proof of Concept code which can be seriously improved.

Below code takes the data from the queue, does something, creates a record in CRM. This was my 30th atempt of trying to get this to work so my brain can’t explain much.

 

October 12, 2017

Dynamics CRM – Dyn365 Data (Online) to Azure (Online) to Dynamics 2016 on premise

No idea how this works. But it works. Registered a service endpoint via the CRM Plugin Registration Tool. Set the endpoint to be an Azure Service […]
October 5, 2017

CRM 2016 JS – ReferenceError: is not defined at eval (eval at RunHandlerInternal)

  [crayon-5dce1f4c12c2d050313016/] Had an issue when attaching some code to the onload event on the leads entity. The TL;DR of the issue is that your code […]
June 22, 2016

C# Code Snipped – Connect to SQL and set variable

using System.Data.SqlClient; var connetion = new SqlConnection(); connetion.ConnectionString = “Data Source=XXXXXXSQL; Initial Catalog=xxx_db1; Integrated Security=true;”; connetion.Open(); SqlCommand query = new SqlCommand(“Select ID from XXX where Username = ‘” + […]
January 7, 2014

Dynamics CRM 2013 – My first gripe.. Or two.

1) On-Hover when you fidget with the mouse is quite annoying and makes me sad, not my fault I’m too use to ‘spraying’ with my mouse. […]