Are there any examples on how to create a workorder using the ScheduAll Manager Protocol
Hi Tim, to create a WorkOrder using ScheduALL Manager, the following class should be sent serialized to the Parameter 1112.
public class WorkOrderCreateData
{
[JsonRequired]
public string StartDateTime { get; set; }[JsonRequired]
public string EndDateTime { get; set; }
[JsonRequired]
public string PreRollMinutes { get; set; }
[JsonRequired]
public string PostRollMinutes { get; set; }
[JsonRequired]
public string ClipName { get; set; }
[JsonRequired]
public TaskStatus TaskStatus { get; set; }
[JsonRequired]
public Dictionary<string, string> WorkOrderFields { get; set; }
[JsonRequired]
public Dictionary<string, string> WorkOrderUserFields { get; set; }
public string ReservationID { get; set; }
public string CarrierUp { get; set; }
public string CarrierNotes { get; set; }
}
Note that if the ReservationID is used, it needs to be filled in with the the ID of the SRM ReservationInstance in DataMiner associated to the WorkOrder being created, in order for ScheduALL Manager to fetch the RESID of the EventResources that will be added to the WorkOrder. In addition, also note that the field in ScheduALL holding the DataMinerID/ElementID that will be used to perform the mapping to the RESID can be configured under 'Configuration - WebService' page at Query Custom Values (ID=179) Parameter.
Forgot to mention that the referred WorkOrder creation is available on the range 2.0.3.X.