Skip to content

Instantly share code, notes, and snippets.

View carfup's full-sized avatar
😎

Clement Olivier carfup

😎
View GitHub Profile
@carfup
carfup / SendCRMDataToApplicationInsights.cs
Created May 15, 2018 06:58
Send CRM data by Azure Functions to Application Insights
/*
* Created by : Clement Olivier
* Date : 05/14/2018
*/
using System.Net;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
@carfup
carfup / AzureFunctionsToInsightCRMExceptions.cs
Last active May 15, 2018 07:41
Sample of Azure functions code in order to send CRM Plugins exceptions to Azure Application Insights
/*
* Created by : Clement Olivier
* Date : 05/14/2018
*/
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
using Newtonsoft.Json.Linq;
using System.Net;
@carfup
carfup / PluginClassSendingToWebhook.cs
Last active May 14, 2018 15:00
PluginClass which allows to send Exception details to a WebHook
// <copyright file="Plugin.cs" company="">
// Copyright (c) 2014 All Rights Reserved
// </copyright>
// <author></author>
// <date>18/11/2014 17:48:14</date>
// <summary>Implements the Plugin Workflow Activity.</summary>
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
// </auto-generated>
@carfup
carfup / ExportUserProfilePictureFromAAD2CRM.ps1
Last active April 26, 2018 08:47
Synchronize your user profile pictures from AzureAD to CRM Online in powershell
#script by Clément Olivier
#date : 22nd of March 2018
#blog reference : https://stuffandtacos.azurewebsites.net/2018/04/22/synchronize-your-user-profile-pictures-from-azuread-to-crm-online-in-powershell/
#Add-Crm-Sdk;
Import-Module -Name ".\Microsoft.Xrm.Data.Powershell"
# Preparing the needed informations to connect to AAD & CRM
$aadUser = "yourname@domain.com"
$aadPassword = ConvertTo-SecureString -String "YourStrongestPassword" -AsPlainText -Force