cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

PDM Checkin through api

rdixit
1-Newbie

PDM Checkin through api

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

1 REPLY 1
BhushanNehe
14-Alexandrite
(To:rdixit)

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

Top Tags