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

API to change Created by and modified by of EPMDOCUMENT/WTPart in windchill?

RiteshPd
4-Participant

API to change Created by and modified by of EPMDOCUMENT/WTPart in windchill?

IS there any API to change Created by and modified by of EPMDOCUMENT/WTPart in windchill?

2 REPLIES 2
avillanueva
22-Sapphire I
(To:RiteshPd)

I checked API docs and I do not see any "setCreator" or "setModifier" methods documented on those objects. These are deep persistence level methods so I would be surprise to see them exposed. Not sure why you would want them changed unless you are doing and import of legacy data from another system. Is this the case? You could also try altering this data at the DB level by changing the user Id reference in WTPart and EPMDocument tables.  What's your use case here?

Hello,

 

Did you try the following methods from  VersionControlHelper class ?

assignIterationCreator

setIterationModifier

 

You can't change the creator of an existing object except if you do it before persistence.

If your program creates the object then it should be possible. If not, try this other method: OwnershipHelper.setOwner. 

 

It is documented here: https://www.ptc.com/en/support/article/cs272226 and here https://www.ptc.com/en/support/article/cs179599

 

Regards,

Pascal

 

 

 

 

Top Tags