REST API - Include "Resulting Objects" When Creating Change Notice
Version: Windchill 13.0
Use Case: The link below explains that it is possible to create add "Affected Objects" to a change task within a change notice when creating the change notice using a REST API call. https://support.ptc.com/help/windchill_rest_services/r2.5/en/?_gl=1*ylfb42*_ga*MjAzNzQyOTYzMC4xNjc4MTcyNTE4*_ga_1QBT6P6HR1*MTY3ODE3OTA5Ni4yLjEuMTY3ODE3OTA5OS4wLjAuMA..#page/windchill_rest_services/example_changemgmt_create_changenotice_mul_tasks.html#
Description:
I have been able to use this script to successfully create a change notice which features a change task with an affected object included on it. I have developed this script further in an attempt to also add "Resulting Objects" (see below). When I add this script into the request body, the interface reports no issues and it seems as though the call runs successfully. When I navigate to the "Changes" section of Windchill, I can see that the change notice was created along with the change task and affected object. However, the "Resulting Objects" table of the change task contains nothing.
Can anybody explain why this might be and if it is possible to add "Resulting Objects" during the creation of a change notice in the same way that "Affected Objects" are?
{
"Name": "Test",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:xxxxx')",
"ChangeNoticeComplexity": {
"Value": "SIMPLE"
},
"ImplementationPlan": [
{
"Name": "WRS_ChangeTask_Deepinset1",
"Assignee@odata.bind": [
"Users('OR:wt.org.WTUser:xxxxx')"
],
"Reviewer@odata.bind": [
"Users('OR:wt.org.WTUser:xxxxx')"
],
"AffectedObjects@odata.bind": [
"Changeables('VR:wt.part.WTPart:xxxxx')"
],
"ResultingObjects@odata.bind": [
"Changeables('VR:wt.part.WTPart:xxxxx')"
]
},
{
"Name": "WRS_ChangeTask_Deepinset2",
"Assignee@odata.bind": [
"Users('OR:wt.org.WTUser:xxxxx')"
],
"Reviewer@odata.bind": [
"Users('OR:wt.org.WTUser:xxxxx')"
]
}
]
}

