Skip to main content
Dec 11, 2022 4:32 PM UTC
Question

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

Dec 11, 2022 4:35 PM UTC

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.

Dec 12, 2022 8:05 AM UTC

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

 

Dec 12, 2022 12:18 PM UTC

@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

 

Dec 12, 2022 12:25 PM UTC

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

Dec 12, 2022 3:19 PM UTC

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