/// <summary> /// Move order example /// </summary> /// <param name="orderNumber">Set OrderNumber as an array of integers</param> /// <param name="newEventID">This is the destination event ID. You can find this attached this to the Events window in Ungerboeck</param> /// <param name="functionID">This is the destination function ID on the destination event. This is required for service orders</param> public IEnumerable <MoveOrdersBulkErrorsModel> MoveOrderBulk(string orgCode, int[] orderNumber, int newEventID, int functionID) { var mymoveBulkOrder = new MoveOrdersBulkModel { OrganizationCode = orgCode, OrderNumber = orderNumber, DestinationEventID = newEventID, Function = functionID, KeepDateTimes = "N" //If "Y", the original order item start/end date will be preserved. If "N", the moved order will adapt to the function start/end date. }; //For bulk operations, 200 only signifies that the process successfully ran. Individual items might have had issues saving. Check the response object for bulk errors. //One or more errors with saving the items if an error object was returned. return(APIUtil.MoveServiceOrdersBulk(USISDKClient, mymoveBulkOrder)); }
/// <summary> /// This is an example of how to move many orders at once /// </summary> /// <param name="orderNumber">OrderNumber is an array of integers for the various order numbers</param> /// <param name="newEventID">This is the destination event ID. You can find this attached this to the Events window in Ungerboeck</param> /// <param name="functionID"></param> public IEnumerable <MoveOrdersBulkErrorsModel> MoveOrderBulk(string orgCode, int[] orderNumber, int newEventID, int functionID) { var myMoveBulkOrder = new MoveOrdersBulkModel { OrganizationCode = orgCode, OrderNumber = orderNumber, DestinationEventID = newEventID, Function = functionID }; //Note: Function and KeepDateTimes properties are not used for Registration Orders. IEnumerable <MoveOrdersBulkErrorsModel> results = APIUtil.MoveRegistrationOrdersBulk(USISDKClient, myMoveBulkOrder); //For bulk operations, 200 only signifies that the process successfully ran. Individual items might have had issues saving. Check the response object for bulk errors. //One or more errors with saving the items if an error object was returned. return(results); }