Creates bulk delete jobs in Dynamics 365 for large-scale data cleanup.
// 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.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using System.Threading;
using Microsoft.Crm.Sdk.Messages;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;
using Xrm.Framework.CI.Common.Entities;
using Xrm.Framework.CI.PowerShell.Cmdlets.Common;
namespace Xrm.Framework.CI.PowerShell.Cmdlets
{
[Cmdlet(VerbsCommon.New, "XrmBulkDeleteJob")]
[OutputType(typeof(Guid))]
public class NewXrmBulkDeleteJobCommand : XrmCommandBase
{
#region Parameters
[Parameter(Mandatory = true)]
public bool Async { get; set; }
[Parameter(Manda
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key