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

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

How to get Created by WTObjects

Pushpak_Old
9-Granite

How to get Created by WTObjects

Hi,

I want all the WTObjects created by particular user. So How I can able to get it?

 

Thanks.

 

 

@manoj_dokku2 , @HelesicPetr 

10 REPLIES 10
avillanueva
22-Sapphire II
(To:Pushpak_Old)

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

 

avillanueva
22-Sapphire II
(To:HelesicPetr)

@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:

avillanueva_0-1670847455161.png

 

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

avillanueva
22-Sapphire II
(To:HelesicPetr)

What about Iterated?

If @Pushpak_Old needs to get all iterations why not >D

PetrH

TomU
23-Emerald IV
(To:HelesicPetr)


@HelesicPetr wrote:

WTObject type do not contains information about CreatedBy.


That doesn't seem right.  The WTParts in my system all show 'Created By'.

TomU_3-1671052515870.png

 

I agree with @joe_morton, why not just search for them?

TomU_0-1671052342528.png

HelesicPetr
22-Sapphire I
(To:TomU)

Hi
You didnt understand
I ment root type WTObject does not contains that info
Only subtypes do

PetrH

Odesláno z iPhonu
TomU
23-Emerald IV
(To:TomU)

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.

TomU_4-1671052933766.png

 

Couldn't you just do an advanced search? Select the relevant types, then set the criteria to be be Created By user.

Top Tags