Create ChangeRequest through OData API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Create ChangeRequest through OData API
Hi,
I'd like to create a ChangeRequest Through Odata Rest API?
PTC Change Management Domain operations support only Get operations in windchill 12 and 11?
- Labels:
-
Change_Mgmt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Same problem. Anyone know if Creating ChangeRequests will be added or is available?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
In WRS 2.2 there's no way to POST a CR but you can customise the existing endpoint, this would be very limited without further customisations in terms of the CR soft-type, process associations, affected objects and end items etc
In codebase\rest\ptc\domain\ChangeMgmt\entity edit the file ChangeRequests.json.
Add CREATE to operations like this "operations": "READ,UPDATE,CREATE" and the functionality will be exposed immediately.
Alternatively, you can use a 'Create-Objects' webject, which can be invoked using REST /InvokeIETask.
<ie:webject name="Create-Objects" type="ACT">
<ie:param name="instance" data="<%=com.infoengine.au.NamingService.getVMName()%>" />
<ie:param name="CONTAINER_REF" data="<%=containerRef%>"/>
<ie:param name="FIELD" data="name='MC_initial_creation'"/>
<ie:param name="GROUP_OUT" data="output"/>
<ie:param name="TYPE" data="<%=CRSoftType%>"/>
</ie:webject>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @VC_8072250
I don't think so, I've found ChangeTask method to create an object. (WCH 12.0.2.0)
There is also method to create ChangeNotice with Tasks
/CreateChangeNoticeHierarchy (check the help)
I can not find the method to create ChangeRequest so I suppose it is not possible OOTB. Just create own method for rest api could be possible in my opinion.
PetrH
(edited)
