Skip to content

Instantly share code, notes, and snippets.

View amreeksingh's full-sized avatar

Amreek Singh amreeksingh

  • Microsoft
  • Sydnay Australia
View GitHub Profile
@amreeksingh
amreeksingh / batchwithguid.json
Created April 9, 2018 01:03
Logic app with Batch Request with manual GUID creation
{
"$connections": {
"value": {
"dynamicscrmonline": {
"connectionId": "/subscriptions/6a539c1f-4415-493f-89b6-9458246ac115/resourceGroups/amreek/providers/Microsoft.Web/connections/dynamicscrmonline-5",
"connectionName": "dynamicscrmonline-5",
"id": "/subscriptions/6a539c1f-4415-493f-89b6-9458246ac115/providers/Microsoft.Web/locations/australiaeast/managedApis/dynamicscrmonline"
}
}
},
@amreeksingh
amreeksingh / deepinsert.json
Created April 9, 2018 01:00
Logic App with Deep Insert
{
"$connections": {
"value": {
"dynamicscrmonline": {
"connectionId": "/subscriptions/6a539c1f-4415-493f-89b6-9458246ac115/resourceGroups/amreek/providers/Microsoft.Web/connections/dynamicscrmonline-5",
"connectionName": "dynamicscrmonline-5",
"id": "/subscriptions/6a539c1f-4415-493f-89b6-9458246ac115/providers/Microsoft.Web/locations/australiaeast/managedApis/dynamicscrmonline"
}
}
},
@amreeksingh
amreeksingh / .json
Created March 2, 2018 01:46
Simple Transaction Logic App Definition
{
"$connections": {
"value": {
"dynamicscrmonline": {
"connectionId": "/subscriptions/6a539c1f-4415-493f-89b6-9458246ac115/resourceGroups/amreek/providers/Microsoft.Web/connections/dynamicscrmonline-5",
"connectionName": "dynamicscrmonline-5",
"id": "/subscriptions/6a539c1f-4415-493f-89b6-9458246ac115/providers/Microsoft.Web/locations/australiaeast/managedApis/dynamicscrmonline"
}
}
},
@amreeksingh
amreeksingh / .json
Created February 19, 2018 04:14
Logic App definition- CRM Web API
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"HTTP-Call CRM API": {
"inputs": {
"headers": {
"Accept": "application/json",
"Authorization": "Bearer @{body('Parse_JSON')?['access_token']}",
"Cache-Control": "no-cache",
@amreeksingh
amreeksingh / .csx
Created February 2, 2018 00:17
Azure Function -Vision API - OCR parser
#r "Newtonsoft.Json"
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions;
using Microsoft.Azure.WebJobs.Host;
using Newtonsoft.Json;
using System.Text;
@amreeksingh
amreeksingh / .csx
Created February 2, 2018 00:02
Azure Function - CRM webhook receiver
using System.Net;
using System.Net.Http;
using System.Text;
using Microsoft.Xrm.Sdk;
using System.Net.Http.Headers;
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
log.Info($"Webhook was triggered!");