Hi Dojo,
I would like to inquire about how to bulk delete these booked orders in MediaOps.scheduling to make it empty.
Thanks.
Currently there is no option to bulk delete jobs with the solution. This is something scheduled on the roadmap. There is a workaround to achieve this, but we can't guarantee this will work in future versions of MediaOps. You can create a script that looks as by below information and ensure the DLL references are set according to the version of MediaOps used.
namespace BulkRemoveJobs_1
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Utils.MediaOps.Helpers.Scheduling;/// <summary>
/// Represents a DataMiner Automation script.
/// </summary>
public class Script
{
/// <summary>
/// The script entry point.
/// </summary>
/// <param name="engine">Link with SLAutomation process.</param>
public void Run(IEngine engine)
{
var helper = new SchedulingHelper(engine);
var jobs = helper.GetJobsBetween();
foreach ( var job in jobs )
{
job.Delete(true);
}
}
}
}
C:\Skyline DataMiner\ProtocolScripts\DllImport\newtonsoft.json\13.0.3\lib\net45\Newtonsoft.Json.dll
C:\Skyline DataMiner\ProtocolScripts\DllImport\skyline.dataminer.utils.mediaops.temp.common\1.1.1-alpha2\lib\net462\Skyline.DataMiner.Utils.MediaOps.Temp.Common.dll
C:\Skyline DataMiner\ProtocolScripts\DllImport\skyline.dataminer.utils.mediaops.temp.helpers\1.1.1-alpha2\lib\net462\Skyline.DataMiner.Utils.MediaOps.Temp.Helpers.dll