Hi, I am creating workorder in post call using the below payload
{
"siteid": "TEST",
"description" : "Test",
"worktype" : "TEST",
"woactivity":[
{
"taskid" : "10",
"description" : "Task 10"
},
{
"taskid" : "20",
"description" : "Task 20"
}
]
}
using the relationship WORKORDER, WORKORDER/WOACTIVITY in Object Structure XXXX level.
Now i have to save the response(WONUM, WOACTIVTY.WONUM) in some middleware,
My issues are
I can't get the WONUM,WOACTIVITY.WONUM in a single response message. so I enabled "Exclude Parent Attribute" from "Advanced Configuration". if i enabled it throws the below error
{
"Error": {
"errorattrname": "wonum",
"extendedError": {
"moreInfo": {
"href": "https://--------------/maximo/api/error/messages/BMXAA4129E"
}
},
"errorobjpath": "workorder/woactivity",
"correlationid": "2",
"errattrvalue": null,
"reasonCode": "BMXAA4129E",
"message": "BMXAA4129E - The record for Site=TD, Activity=XXXXXX already exists. Ensure that the key value for the given record is unique.",
"statusCode": "400"
}
}
Please help me to achieve this
Thanks,
Karthik Krishnamurthy
------------------------------
karthik krishnamurthy
------------------------------
#Maximo#MaximoIntegrationandScripting