This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.IdentityModel.Clients.ActiveDirectory; | |
using System; | |
using System.Collections.Generic; | |
namespace MichelOverrideExampleApp | |
{ | |
public class MichelOverrideExampleHookImplementation : Microsoft.Xrm.Tooling.Connector.IOverrideAuthHookWrapper | |
{ | |
// In memory cache of access tokens | |
Dictionary<string, AuthenticationResult> accessTokens = new Dictionary<string, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
##Target | |
## | |
cd $Env:userprofile | |
md .\Dynamics365\ | |
cd Dynamics365 | |
## | |
## Wire up NuGet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="../MSXRMTOOLS.Xrm.Page.2016.js" /> | |
// Declaring our Namespace | |
var MindsUnitedCourse = MindsUnitedCourse || {}; | |
MindsUnitedCourse.WebApi = (function () { | |
// Helper method for calling the WebApi | |
function _callWebApi(method, collection, querystring, postData, successCallBack, errorCallBack) { | |
// Get the client Url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Helper method for calling the WebApi | |
function callWebApi(method, collection, querystring, postData, successCallBack, errorCallBack) { | |
// Get the client Url | |
var clientUrl = Xrm.Page.context.getClientUrl(), | |
// Create a XMLHttpRequest | |
request = new XMLHttpRequest(); | |
// Build the request using the provided collection and querystring | |
request.open(method, clientUrl + "/api/data/v8.1/" + collection + (querystring || ""), true); |