Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
IS there any API to change Created by and modified by of EPMDOCUMENT/WTPart in windchill?
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