Create, retrieve, update, & delete 365 data in a late bound fashion

In previous articles I’ve discussed the 365 SDK, creating a connection to the server via the IOrganizationService, and usage of the entity class. Once you have those key elements, it’s really easy to perform create, retrieve, update, and delete (CRUD) operations. I would suggest reviewing those articles before proceeding with this one if you haven’t already. I’m using late bound (and not early bound) here, check out the previous articles for my reasoning and an extended discussion of the merits of either approach.

Continue reading

Using the 365 entity class in a late bound fashion

In this article I’ll address usage of the entity class. The entity class is critical element when interacting with 365 data via the IOrganizationService, it is especially important when working in a late bound fashion. You will pass entity objects to and from 365 to create, retrieve, and update data.

Continue reading

Connecting to Microsoft Dynamics 365 using the SDK

If you are .Net developer and you need to connect to 365 from an external application, e.g. console application, then your easiest option is to the use the SDK. In this article, I’ll describe the basic steps to setup a project and connect to 365 use the Xrm Tooling assembly. In follow up articles I’ll go into more detail about using the connection to do something useful. If you are writing a plugin or custom workflow you will create your connection in a different manner, search the MSDN for more details.

Continue reading

Exploring the Microsoft Dynamics 365 SDK

Microsoft provide a downloadable SDK that contains a variety of resources which are often useful (or required) when working with 365. You can get the SDK here (or just Google it if the link drops). When you start the download process you may be offered two files.

  • MicrosoftDynamics365SDK – this is the SDK and the file you want, it will extract the SDK contents into a directory of your choice.
  • MicrosoftDynamicsCRM2016UII – you probably don’t want this, it’s the Unified Service Desk and the UII framework which provides a “framework for building integrated agent applications that provide unified access to customer information across different systems”.

Continue reading

Introducing the Microsoft Dynamics 365 web services

Dynamics 365 has several web services, these provide access to pretty much every piece of data and functionality within the application. Whilst some web services have distinct duties, there are a couple dedicated to working the application data which have overlapping functionalities. This is due to the evolution of the product; web services are added and deprecated over time. I’ll be looking at the web services currently available in 365, you may come across the ‘2007 endpoint’ however this was deprecated with CRM 2011.

Continue reading

Microsoft Dynamics 365 and the importance of staying supported

When writing code with 365 – especially JavaScript within the application – it’s easy to become unsupported if you’re not careful, or otherwise unfamiliar with the application. Staying supported means, you can assume (with reasonable confidence) that your implementations will;

  • Function correctly.
  • Microsoft support will help when they don’t.
  • Will continue working when an upgrade occurs (unless features are deprecated – this happens but you usually get several years’ notice).

Continue reading