Discussions
API ERROR : 500 Can't map WoItem asset 'Space/Workstation'"
almost 2 years ago by Himansu
We are getting this error for location: EXPEDIA0197.
We have tried using different assets and tasks but still the same error.
Endpoint : https://am-helper.corrigo.com/jll-wfs/WoCreateCommand
Payload body :
{
"commandRequest": {
"type": "WoCreateCommand",
"WorkOrder": {
"SubType": {
"DisplayAs": "Reactive Maintenance"
},
"Customer": {
"TenantCode": "EXPEDIA0197"
},
"MainAsset": {
"ID": "63264"
},
"Items": [{
"Asset": {
"Name": "Space/Workstation"
},
"Task": {
"DisplayAs": "Add"
},
"Comment": "This is a demo WO description, ignore "
}],
"ContactName": "TestContact",
"ContactAddress": {
"Address": "hi***@expediagroup.com",
"ActorTypeId": "Employee",
"AddrTypeId": "Contact"
},
"CustomFields": [
{
"Descriptor":{
"Name":"ServiceNow Number",
"ActorTypeId":"WO"
},
"Value": "12345"
}
],
},
"ComputeSchedule": "true",
"ComputeAssignment": "true"
}
}
Output : 500 : {"type":"Exception","message":"Can't map WoItem asset 'Space/Workstation'"}
Can someone help in resolving this error?
We contacted [email protected], they asked us to reach out here.
Thankyou.