OData Connected Service in Visual Studio 2017

Here we will use the OData Connected Service to connect to an OData feed from Visual Studio 2017. First, install the extension. Select Tools->Extensions and Updates: Select Online and search for OData Connected Service: Restart Visual Studio to complete the install. Create a new Visual Studio console app: Right Click and select Add->Connected Service: Select OData Connected Service: Enter a service endpoint: Select Settings and enter a name: Click Finish. … Continue reading OData Connected Service in Visual Studio 2017

OData Client Code Generator

The OData v4 Client Code Generator is an extension that can be used to generate OData code for use in applications. To install it, open Visual Studio 2015 and under Visual Studio Gallery, search for OData Client Code Generator: Click to Install: The extension is now installed: To use the extension, we will create a new Windows Console project: Add a new item and under Code select OData Client: Files … Continue reading OData Client Code Generator

Create a WCF Windows Service

Here we will create a WCF web service hosted as a windows service. We will go through step by step how to do this. First, create a new WCF Service Application: This will create the project: If we select the Service1.svc page and press F5 to run this, it will open the WCF Test Client. From here, we can select the GetData() method and enter a value. Invoking the method will … Continue reading Create a WCF Windows Service

ASP.NET Web API

ASP.NET Web API allows us to build HTTP services. It can be used with ASP.NET MVC, Web Forms, WCF HttpBinding. The framework is built on ASP.NET. We will go through an example of building a Web API with MVC using Entity Framework. To create a new project, open Visual Studio and create a new ASP.NET Web Application: Now select the type of project. Here we will select Web API: The … Continue reading ASP.NET Web API

Dynamics CRM Web API Sample

You can connect to Dynamics CRM from outside the application using OAuth 2.0 authentication. From there, you can use the Web API to call Dynamics CRM functionality. Here we will go through an example of how to do this. This is based on the sample code located here. Firstly, we will need to configure an application in Azure to help with the OAuth piece. Configure the app using these instructions. These samples … Continue reading Dynamics CRM Web API Sample

Register an App with Windows Azure

The following steps show how to register an application with Microsoft Azure. This app can then be used for OAuth 2.0 authentication outside of Dynamics CRM. Log into portal.azure.com as your Dynamics CRM administrator. Select Azure Active Directory from the menu on the left: Select App Registrations: Select Add: Enter the name of the app, e.g. Test Basic App. Select the application type as Native: Click Create to create the app. … Continue reading Register an App with Windows Azure

Dynamics CRM Integration Options

There are many different ways you can integrate with Dynamics CRM. Here I will go through some of the available options. Web API The Web API is a RESTful web service. It uses JSON for requests and responses. You can use Web API with JavaScript. This works both online and on premise. This is useful for connecting Power BI to Dynamics CRM. https://yourinstance.crm.dynamics.com/api/data/v8.1/ E.g. https://yourinstance.crm.dynamics.com/api/data/v8.1/accounts/ OData The OData endpoint is deprecated with the release of … Continue reading Dynamics CRM Integration Options

WCF Data Contracts and Data Members

WCF Data Contracts define the contract between client and server over what will be exchanged. Here we will go through creating a WCF service and consuming it, noting the data contracts. First, create a new WCF project: In this example we will have a data contract for a Customer class. Add code: 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.WCFCRM { [ServiceContract] … Continue reading WCF Data Contracts and Data Members

Introduction to OAuth

OAuth is an open standard for authorization of websites and applications. It provides these applications with a simple, secure way allow their users to access their data. For example, let’s say you are a developer building an application. OAuth allows you to delegate the authorization. There are many websites and mobile applications that use Facebook or Google to authentication users. This is done through OAuth. OAuth has many benefits. The framework does … Continue reading Introduction to OAuth

Using the Postman REST Client

The Postman REST client is a client application that has a Chrome extension. Here we will go into how to install and use the client. Go to the Chrome web store: https://chrome.google.com/webstore/category/extensions?hl=en Search for Postman. You will see this app below. Click Add To Chrome: You will see this Postman link below: This will open the page: And after that: Enter a REST URI, e.g. https://www.googleapis.com/books/v1/volumes?q=isbn:0747532699 The response is returned: You can change the … Continue reading Using the Postman REST Client