Developer Q&A

Ask a Question
Back to All

DueDate being changed by Corrigo API - confusing.

Hi,

We have created a WO with a given ScheduleDate and a given DueDate. After executing the WOCreateCommand, the DueDate is changed.

Example:

We set ScheduledDate: 1/1/2022 and DueDate: 1/31/2022.
Corrigo saves as: SchduledDate: 1/1/2022 and DueDate: 1/1/2022 1:00:00 AM

Corrigo API is changing the DueDate and deciding that the new DueDate is 60 minutes after the ScheduledDate.

Any suggestions?

See below objects for reference. (I've removed some attributes from child-objects to save space here).

OUR OBJECT:
{
"Number": "00475850",
"TypeCategory": 4,
"WorkOrderCost": null,
"Priority": {
"Id": 3,
"PerformDeletion": false
},
"StatusId": 0,
"RequestorContact": null,
"Access": 0,
"MainAsset": {
"Id": 602757,
"PerformDeletion": false
},
"ShortLocation": "XXXXXE",
"TaskRefinement": "",
"WorkZone": {
"Id": 2,
"PerformDeletion": false
},
"Employee": {
"Id": 50,
"PerformDeletion": false
},
"Duration": 0,
"VendorNte": {
"CurrencyTypeId": 16,
"Value": 0.00
},
"Specialty": {
"Id": 10016,
"PerformDeletion": false
},
"PoNumber": "4500039135",
"SubType": {
"Id": 282,
"PerformDeletion": false
},
"RepairCode": null,
"Customer": {
"Id": 138752,
"PerformDeletion": false
},
"ContactName": "XXXX",
"WonId": 0,
"IsWarranty": false,
"Flag": null,
"FlagId": 0,
"TimeZone": 0,
"CurrencyTypeId": 0,
"LastActionDate": "0001-01-01T00:00:00",
"DtCreated": "2021-05-26T17:50:59.07",
"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": 1302269,
"PerformDeletion": false
},
"Task": {
"Id": 14094,
"PerformDeletion": false
},
"Comment": "COMPLETE PREVENTATIVE MAINTENANCE"
}],
"EquipmentWorkedOn": null,
"Notes": null,
"CompletionNote": null,
"ContactAddress": {
"ActorTypeId": 0,
"ActorId": 0,
"AddrTypeId": 16,
"Address": "555-555-5555",
"IsAlert": false,
"IsReport": false,
"ConcurrencyId": 0,
"Id": 0,
"PerformDeletion": false
},
"Assignments": null,
"Procedures": null,
"Documents": null,
"CustomFields": null,
"Verifications": null,
"Quote": null,
"CheckInOuts": null,
"ActionLogRecords": null,
"Estimate": null,
"Owner": null,
"InductionAndSafetyStatusID": 0,
"Flags": null,
"ConcurrencyId": 0,
"Id": 0,
"PerformDeletion": false
}

CORRIGO OBJECT
{
"Number": "00475850",
"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": 236390,
"PerformDeletion": false
},
"Priority": {
"Id": 3,
"PerformDeletion": false
},
"StatusId": 4,
"RequestorContact": null,
"Access": 2,
"MainAsset": {
"Name": "",
"Address": null,
"ModelId": 0,
"Orphan": false,
"TypeId": 0,
"ParentId": 0,
"RootId": 0,
"IsTemplate": false,
"Info": null,
"Documents": [],
"IsOffline": false,
"IsLocked": false,
"Attributes": [],
"Id": 602757,
"PerformDeletion": false
},
"ShortLocation": "XXXX",
"TaskRefinement": "PREVENTATIVE MAINTENANCE",
"WorkZone": {
"DisplayAs": "",
"Asset": null,
"TimeZone": 0,
"LanguageId": 0,
"WoNumberPrefix": "",
"Entity": "",
"SchedulingWindow": 0,
"NoIncompleteProcedure": false,
"AccessOptionsMask": 0,
"Number": "",
"AdvanceNotice": 0,
"TaxRegion": null,
"WoNumberDigits": 0,
"RoundApptTimeTo": 0,
"WorkPlanAutoCancel": false,
"WorkPlanChildResolution": false,
"WorkPlanAutoDependency": false,
"CpThemeId": 0,
"DefaultAccess": 0,
"AutoAssignEnabled": false,
"BackupRoutingId": 0,
"BillingAccount": null,
"Contract": null,
"NoIncompleteItem": false,
"UiShowProvidersFirst": false,
"CurrencyTypeId": 0,
"IsOffline": false,
"ContactAddresses": [],
"CustomFields": [],
"Portfolios": [],
"SlaValues": [],
"Teams": [],
"BizHours": [],
"EscalationRules": [],
"SpecDispatchRules": [],
"OnCallRules": [],
"Responsibilities": [],
"UseBizHours": false,
"UseHolidays": false,
"UseOnCall": false,
"UseEscalation": false,
"DefaultBillToLogic": 0,
"TurnKickOffAuto": false,
"TurnKickOffLagDays": 0,
"TurnKickOffOnDays": 0,
"EarliestSlot": 0,
"LatestSlot": 0,
"SlotsCount": 0,
"IsPrecalculatedSchedule": false,
"AllowTimePreference": false,
"TurnTemplateId": 0,
"IsmSpecGroupId": 0,
"IsmUrl": "",
"ExcludeNonCompliantProviders": 0,
"IsNteAuto": true,
"IsRemoved": false,
"ConcurrencyId": 2,
"Id": 2,
"PerformDeletion": false
},
"Employee": null,
"Duration": 0,
"VendorNte": {
"CurrencyTypeId": 16,
"Value": 0.00
},
"Specialty": {
"DisplayAs": "",
"WONServiceId": 0,
"Instructions": "",
"TaxCode": null,
"Currencies": [],
"IsNteAuto": true,
"IsRemoved": false,
"ConcurrencyId": 3,
"Id": 10018,
"PerformDeletion": false
},
"PoNumber": "XXXX",
"SubType": {
"DisplayAs": null,
"TypeId": 0,
"Abbr": null,
"IsDefSR": false,
"IsDefBasic": false,
"IsRemoved": false,
"ConcurrencyId": 1,
"Id": 282,
"PerformDeletion": false
},
"RepairCode": null,
"Customer": {
"DisplayAs": "",
"Name": "",
"WorkZone": null,
"Dba": "",
"Instructions": "",
"TenantCode": "",
"TaxExempt": false,
"Spaces": [],
"Contacts": [],
"CustomFields": [],
"Notes": [],
"Addresses": [],
"Contract": null,
"GroupsBridge": [],
"ApprovalScopes": [],
"IsRemoved": false,
"ConcurrencyId": 0,
"Id": 138752,
"PerformDeletion": false
},
"ContactName": "XXXX",
"WonId": 0,
"IsWarranty": false,
"Flag": null,
"FlagId": 0,
"TimeZone": 20,
"CurrencyTypeId": 16,
"LastActionDate": "2021-05-26T17:50:59.07",
"DtCreated": "2021-05-26T17:50:59.07",
"DtScheduledStart": "2022-01-01T00:00:00",
"DtDue": "2022-01-01T02:00:00",
"DtAcknowledgeBy": "2021-05-28T11:30:00",
"AcknowledgeByUtc": "2021-05-28T16:30:00Z",
"LastActionDateUtc": "2021-05-26T22:50:59.07Z",
"CreatedDateUtc": "2021-05-26T22:50:59.07Z",
"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": {
"WorkOrderId": 0,
"LastAction": null,
"EmergencyReason": null,
"Reason": null,
"BillStatus": 0,
"Invoice": null,
"BilledTotal": null,
"XNumber": null,
"Id": 236390,
"PerformDeletion": false
},
"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": 236390,
"PerformDeletion": false
}

Thanks,

Juan Olano