The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
Hi,
I want all the WTObjects created by particular user. So How I can able to get it?
Thanks.
Should be fairly simple with QueryBuilder. Just create a report that queries on WTObject and outputs the type of object and creator so you can use it as a filter criteria.
Hi @Pushpak_Old
I don't think so you can do it directly from WTObject.
WTObject type do not contains information about CreatedBy.
Subtypes contains that information.
By API you need to retype to the subtype and then use .getCreator()
If you need all objects you need to use all subtypes from the system.
PetrH
@HelesicPetr , my bad. I saw Created in the list and mistook for Created By. Would the security logs be able to retrieve this information? BTW, this is all the interfaces that have getCreatorName as a method:
Hi @avillanueva
Good point.
I would use a RevisionControlled type to get all objects from system.
Unfortunately you do not get the links and so on but.
Depends what @Pushpak_Old needs the RevisionControlled type is good enough to get all stored objects from the folder system in all contexts.
it is good to use RevisionControled type in the QueryBuilder.
PetrH
What about Iterated?
@HelesicPetr wrote:
WTObject type do not contains information about CreatedBy.
That doesn't seem right. The WTParts in my system all show 'Created By'.
I agree with @joe_morton, why not just search for them?
I think I might have misunderstood. If the question is really about who created every possible object in the entire system, then my response was probably not correct. I'm not sure Windchill even stores who created every single object.
Couldn't you just do an advanced search? Select the relevant types, then set the criteria to be be Created By user.