Discussions

Ask a Question
Back to All

When I try to create work order, I was not seeing the Description field populated, it stayed empty.

(edited)

Posted on behalf of : [email protected] who is active integration developer.

Please refer the API request body and the screenshot for the WO created by the API call below.

What do I need to pass in the request body to make sure the Create WorkOrder API populates correct Description in Corrigo? And which API to use if we need to update the description later for an existing work order?

{
"Command" : {
"WorkOrder" : {
"Items" : [
{
"Asset" : {
"Id" : 784583
},
"Task" : {
"Id" : 15651
}
}
],
"Contactid":14200,
"Description":"Testing WorkOrder description",
"TaskRefinement":"Testing WorkOrder description",
"ContactName" : "Reginald Doppelhong",
"ContactAddress" : {
"AddrTypeId" : "Contact",
"Address" : "214-555-5555"
},
"TypeCategory" : 4,
"TimeZone": 4,

     "SubType" : {
        "Id" : 259
     },
     "Customer" : {
        "Id" : 5609
     }
  },
  "ComputeSchedule" : true,
  "Comment" : "Testing create WO create API" 

}
}
Response for create API :

{
"CommandResult": {
"Wo": {
"Number": "BIOT00008",
"TypeCategory": "Request",
"WorkOrderCost": {
"Id": 429983
},

}