Imports CRM solutions and returns AsyncJobId for async imports
// Source: https://github.com/WaelHamze/xrm-ci-framework | License: MIT | Copyright 2015 WaelHamze
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.IO;
using System.Management.Automation;
using System.Threading;
using Microsoft.Crm.Sdk.Messages;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Messages;
using Microsoft.Xrm.Sdk.Query;
using Xrm.Framework.CI.Common;
using Xrm.Framework.CI.PowerShell.Cmdlets.Common;
namespace Xrm.Framework.CI.PowerShell.Cmdlets
{
/// <summary>
/// <para type="synopsis">Imports a CRM solution</para>
/// <para type="description">This cmdlet imports a CRM solution and return AsyncJobId for async imports
/// </para>
/// </summary>
/// <example>
/// <code>C:\PS>Export-XrmSolution -Connection
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key