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

Fiddler Install

Fiddler is a web debugging proxy tool written by Eric Lawrence and owned by Telerik. To download it, go to: https://www.telerik.com/fiddler and select Free Download: Click Download: This will download: Click I Agree: Click Install: Click Close: You will see: Run Fiddler: Fiddler will load: You have the option to capture and not capture traffic: You will notice in your Internet Explorer options, a Proxy will be enabled. This will start and stop … Continue reading Fiddler Install

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

Publish Web Service to Azure from Visual Studio

To publish a web service from Visual Studio, do the following. You may need to install the Azure SDK for .NET. You can find the download link on the Microsoft website: https://azure.microsoft.com/en-us/downloads/archive-net-downloads/ Select the web service. Right click and publish:   Select Microsoft Azure App Service and New: Confirm the details and click Create: Press Publish: A webpage will be created with the instructions: And you can access the web service … Continue reading Publish Web Service to Azure from Visual Studio

XMLHttpRequest Explained

The XMLHttpRequest is an API used in modern web browsers. It contains methods that allow communication between the web browser and a web server through JavaScript. Although the name is XML, it can also support JSON. Let’s go through an example of how to use it. First, we will use a previous example where we have a WCF web service set up. This service is then uploaded to Azure so it can be … Continue reading XMLHttpRequest Explained

Create WCF Web Service in Visual Studio

Windows Communication Foundation (WCF) web services can be created in Visual Studio. Note these web services replace the old asmx web services. To create a web service in Visual Studio do the following. Create a new project in Visual Studio and select WCF Service Application: This creates the solution: Delete the existing Service1.svc and IService1.cs and add a new WCF Service: This will create these 2 files again. Note the … Continue reading Create WCF Web Service in Visual Studio