Developer Q&A
Why is corrigo API changing the SpecialtyId of a WO created via the API?
Hi,
I am creating a new WO using WOCreateCommand. I give the command a WO object with a given specialtyId. After executing the command, the created WO has a different SpecialtyId.
Could you please shed some light on this?
I've attached the 2 objects: my object and the corrigo object. See how SpecialtyId was set to 10014 in the original object, and then Corrigo changed it to 10018 when creating the WO.
Thanks!
Juan
MY WO OBJECT:
{
"Number": "00338127",
"TypeCategory": 4,
"WorkOrderCost": null,
"Priority": {
"Id": 3
},
"StatusId": 0,
"RequestorContact": null,
"Access": 0,
"MainAsset": {
"Id": 613042
},
"ShortLocation": "COSTCO-BELLEVUE-1162",
"TaskRefinement": "",
"WorkZone": {
"Id": 4
},
"Employee": {
"Id": 50
},
"Duration": 1440,
"VendorNte": {
"CurrencyTypeId": 16,
"Value": 0.00
},
"Specialty": {
"Id": 10014
},
"PoNumber": "",
"SubType": {
"Id": 282
},
"RepairCode": null,
"Customer": {
"Id": 139077
},
"ContactName": "XXX IN XXX",
"WonId": 0,
"IsWarranty": false,
"Flag": null,
"FlagId": 0,
"TimeZone": 0,
"CurrencyTypeId": 0,
"LastActionDate": "0001-01-01T00:00:00",
"DtCreated": "2021-09-01T12:53:26.65",
"DtScheduledStart": "2022-01-01T00:00:00",
"DtDue": "2022-01-31T00:00:00",
"DtAcknowledgeBy": null,
"AcknowledgeByUtc": null,
"LastActionDateUtc": "0001-01-01T00:00:00",
"CreatedDateUtc": "0001-01-01T00:00:00",
"ScheduledStartUtc": null,
"DueDateUtc": null,
"DtOnSiteBy": null,
"DtUtcOnSiteBy": null,
"LastAction": null,
"Address": null,
"Items": [{
"Asset": {
"Id": 613042
},
"Task": {
"Id": 14094
},
"Comment": "COMPLETE ..."
}],
"EquipmentWorkedOn": null,
"Notes": null,
"CompletionNote": null,
"ContactAddress": {
"AddrTypeId": 16,
"Address": "555-000-0000",e
},
"Assignments": null,
"Procedures": null,
"Documents": null,
"CustomFields": null,
"Verifications": null,
"Quote": null,
"CheckInOuts": null,
"ActionLogRecords": null,
"Estimate": null,
"Owner": null,
"InductionAndSafetyStatusID": 0,
"Flags": null
}
THE OBJECT CREATED BY CORRIGO:
{
"Number": "00338127",
"TypeCategory": 4,
"WorkOrderCost": {
"CurrencyTypeId": 0,
"BillToOption": null,
"CostsTotal": {
"CurrencyTypeId": 0,
"Value": 0.0
},
"ApStateId": 0,
"ApStatusId": 1,
"JobCode": "",
"Contract": null,
"AuthorizationCode": "",
"CheckNumber": "",
"PaymentAmount": {
"CurrencyTypeId": 0,
"Value": 0.0
},
"PaymentNotes": "",
"CheckCutDate": null,
"CheckClearDate": null,
"GlAccount": "",
"Number": "",
"VendorInvoiceDate": null,
"VendorInvoiceReceivedDate": null,
"VendorInvoiceTotal": {
"CurrencyTypeId": 0,
"Value": 0.0
},
"IsPreBilled": false,
"ExpensesTotal": {
"CurrencyTypeId": 0,
"Value": 0.0
},
"BillingRule": 0,
"TaxStatus": 0,
"CustomerNte": {
"CurrencyTypeId": 0,
"Value": 0.0
},
"Items": [],
"TaxValidationNote": null,
"TaxDetails": null,
"ServiceFeesTotal": {
"CurrencyTypeId": 0,
"Value": 0.0
},
"CostStatusId": 1,
"CostState": 0,
"ChargeCode": null,
"BillingAccount": null,
"ExternalId": "",
"ConcurrencyId": 1,
"Id": 236387,
"PerformDeletion": false
},
"Priority": {
"Id": 3
},
"StatusId": 4,
"RequestorContact": null,
"Access": 2,
"MainAsset": {
"Id": 613042
},
"ShortLocation": "XXXXXXX",
"TaskRefinement": "XXXXXXX",
"WorkZone": {
"Id": 4
},
"Employee": null,
"Duration": 0,
"VendorNte": {
"CurrencyTypeId": 16,
"Value": 0.00
},
"Specialty": {
"Id": 10018
},
"PoNumber": "",
"SubType": {
"Id": 282
},
"RepairCode": null,
"Customer": {
"Id": 139077
},
"ContactName": "XXXX I",
"WonId": 0,
"IsWarranty": false,
"Flag": null,
"FlagId": 0,
"TimeZone": 20,
"CurrencyTypeId": 16,
"LastActionDate": "2021-09-01T12:53:26.65",
"DtCreated": "2021-09-01T12:53:26.65",
"DtScheduledStart": "2022-01-01T00:00:00",
"DtDue": "2022-01-01T02:00:00",
"DtAcknowledgeBy": "2021-09-02T16:30:00",
"AcknowledgeByUtc": "2021-09-02T21:30:00Z",
"LastActionDateUtc": "2021-09-01T17:53:26.65Z",
"CreatedDateUtc": "2021-09-01T17:53:26.65Z",
"ScheduledStartUtc": "2022-01-01T06:00:00Z",
"DueDateUtc": "2022-01-01T08:00:00Z",
"DtOnSiteBy": "2022-01-01T00:00:00",
"DtUtcOnSiteBy": "2022-01-01T06:00:00Z",
"LastAction": {
"Id": 236387
},
"Address": null,
"Items": [],
"EquipmentWorkedOn": [],
"Notes": [],
"CompletionNote": null,
"ContactAddress": null,
"Assignments": [],
"Procedures": [],
"Documents": [],
"CustomFields": [],
"Verifications": [],
"Quote": null,
"CheckInOuts": [],
"ActionLogRecords": [],
"Estimate": null,
"Owner": null,
"InductionAndSafetyStatusID": 0,
"Flags": [],
"ConcurrencyId": 1,
"Id": 236387,
"PerformDeletion": false
}