Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Translate the entire conversation x

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

RiteshPd
10-Marble

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 III
(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?

Pascal_Brunet
14-Alexandrite
(To:RiteshPd)

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

 

 

 

 

Announcements


Top Tags