This file contains 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
#region IOrganizationService implementation | |
public Guid Create(Entity entity) | |
{ | |
Trace($"Creating {entity.LogicalName} with {entity.Attributes.Count} attributes"); | |
var result = Service.Create(entity); | |
Trace("Created!"); | |
return result; | |
} |
This file contains 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 System; | |
namespace XrmToolBox.Constants | |
{ | |
// Guids of tools, to be used when referencing tool A from tool B in integration scenarios. | |
// Feel free to submit your own tool ids here, to help grow integration possibilities! | |
// | |
// Original file found at: https://gist.github.com/rappen/eeb2a9633de39fe5a0bfcf74643d777d | |
public static class XrmToolBoxToolIds |
This file contains 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
/* *********************************************************** | |
* CanaryTracer.cs | |
* Revision: 2025-01-29 | |
* Code found at: https://jonasr.app/canary-code | |
* Background: https://jonasr.app/canary/ | |
* Created by: Jonas Rapp https://jonasr.app/ | |
* | |
* Writes everything from an IExecutionContext to the Plugin Trace Log. | |
* | |
* Simplest call: |
This file contains 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.Crm.Sdk.Messages; | |
using Microsoft.Xrm.Sdk; | |
using Microsoft.Xrm.Sdk.Query; | |
using System.Xml; | |
namespace Rappen.Xrm.Extensions | |
{ | |
public static class ServiceExtensions | |
{ | |
/// <summary> |
This file contains 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
/* *********************************************************** | |
* XTBAppInsights.cs | |
* Found at: https://gist.github.com/rappen/fbdbb644b3fffec1305b00a51b007fa6 | |
* Created by: Jonas Rapp https://jonasr.app/ | |
* Immensely inspired by: code from Jason Lattimer https://github.com/jlattimer/D365AppInsights | |
* | |
* Simplifies logging to Azure Application Insights from XrmToolBox tools. | |
* | |
* Sample from tool constructor: | |
* ai = new AppInsights("https://dc.services.visualstudio.com/v2/track", "[a guid that is the key to your appinsights resource]", Assembly.GetExecutingAssembly(), "[my custom tool name]"); |