Discussions

Ask a Question
Back to all

wocreatecommand - due date and scheduled start date

I can successfully create a new work order with woCreateCommand as long as I keep "ComputeSchedule" as "true."

I want to set specific Due Date and Scheduled Start Date values.

I tried adding those elements to the payload (multiple formats, including Iso8601) but can't make it work.

testing code is:


[
    {
        "CommandName" : "WoCreateCommand",
        "Command": {
            "WorkOrder": {
                "Items": [
                    {
                        "Asset": {"Id" : 320097},
                        "Task" : {"Id" : 19458},
                        "Comment" : "TO-Move Out Inspection, RBU: 0101.129.7B (2/2), due by 07/03/2026 17:00, Perform Move-Out Inspection",
                    }
                ],
                "WorkOrderCost": {
                    "BillingRule": "All",
                    "BillingAccount": {"Id": 6},
                    "BillToOption": {"Id": 2}
                },
                "TypeCategory" : "Basic",
                "SubType" : {"Id" : 260},
                "Customer" : {"Id" : 7640},
                "DtDue" : "2026-07-03T17:00:00",
                "ScheduledStartUtc" : "2026-07-03T13:00:00",
            },
            "ComputeSchedule" : false,
            "EmployeeID": 804,
            "SkipProcedures": false,
            "SkipBillToLogic": true,
           "RequestID":"20260505.0421"
        }
    },
]