Hello,
Try creating a view for child WO and associate this this view in OS. Make sure the where clause associated in view is having same whereclause that is used in our UI to display child WOs.
The Payload looks like below.
{
"spi:workorder": {
"wonum": null,
"description": "Test for WO",
"status": "APPR",
"siteid": "BEDFORD",
"location": "MAINPLANT",
"assetnum": "SERVER-001",
"childwos": [ // This "childwos" property name matches your relationship name
{
"wonum": null,
"description": "Child WO: Install RAM Upgrade",
"status": "APPR",
"siteid": "BEDFORD",
"location": "MAINPLANT",
"assetnum": "SERVER-001"
// Maximo will automatically set the 'parent' attribute for this child based on the relationship
},
{
"wonum": null,
"description": "Child WO: Configure Network Settings",
"status": "APPR",
"siteid": "BEDFORD",
"location": "MAINPLANT",
"assetnum": "SERVER-001"
// Maximo will automatically set the 'parent' attribute for this child
}
]
}
}
Thank you !
------------------------------
Pavan Uppalanchu
IBM
------------------------------
Original Message:
Sent: 01-25-2025 17:35
From: Theo Pozzy
Subject: Maximo integration object structure with parent and child WORKORDER objects
I am trying to create REST API calls on work orders, and I would like to have the parent and child work orders in the same message. I know I can use the WOACTIVITY object (view) to get tasks to a work order, but I'm having problems creating an object structure with the WORKORDER as the primary object and then as a child object. The WORKORDER object has a relationship available named "CHILDNOTASK" that seems ideal for this case.
However, when I add the WORKORDER object a second time to the object structure, the Object Structures application gives me the following error:
BMXAA1236E - Only one instance of a MBO set can be specified in the MBO location path.
What options do I have to get this to work?
#Integrations
------------------------------
Theo Pozzy
OneGas
------------------------------