Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi Folks,
I want to checkin (PDM Checkin) WTObjects from Project Link to PDMLink. using API - SandboxHelper.service.Checkin(WTKeyedMap,String). But unable to figure out what parameter we have to givein. I didn't find any example or help in PTC user site so looking for answer in community site 🙂
We can do PDM Checkout, undoCheckOut and sharing with Sandboxhelper API successfully but not able to do checkin.
Thanks in advance.
Rahul Dixit
Hi Rahul,
SandboxHelper.service.Checkin is not marked supported API so there is not much documentation available and I would also not recommend using it. You can refer to the following expression for parameters but this is not an complete example
WTKeyedHashMap partToCheckinDataMap = new WTKeyedHashMap(1, CollectionsHelper.VERSION_FOREIGN_KEY);
InitialCheckinData initialCheckinData = new InitialCheckinData();
initialCheckinData.setFolder(product.getDefaultCabinet());
wt.inf.container.WTContainerRef cf = wt.inf.container.WTContainerRef.newWTContainerRef(product);
initialCheckinData.setTargetContainerRef(cf);
partToCheckinDataMap.put(partInProject, initialCheckinData);
SandboxHelper.service.checkin(partToCheckinDataMap, "test pdm checkin");
Regards,
Bhushan