Skip to main content
10-Marble
December 11, 2022
Question

How to get Created by WTObjects

  • December 11, 2022
  • 3 replies
  • 2633 views

Hi,

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

 

Thanks.

 

 

@manoj_dokku2 , @HelesicPetr 

3 replies

avillanueva
23-Emerald I
23-Emerald I
December 11, 2022

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.

HelesicPetr
22-Sapphire II
22-Sapphire II
December 12, 2022

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
23-Emerald I
23-Emerald I
December 12, 2022

@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

 

HelesicPetr
22-Sapphire II
22-Sapphire II
December 12, 2022

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

joe_morton
18-Opal
18-Opal
December 12, 2022

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