History as Attribute in Search Criteria

I want to create saved search to check user activity for Parts class but where is History attribute in Search Criteria? Is exist any way to activate it

Add Comment
5 Answer(s)

we cannot search on history attribute.

Agile Angel Answered on July 10, 2018.
Add Comment

It is not possible to have History attributes however if you want to track activities of user on a particular class or object, you can write a simple sdk program or scripts.

Agile Angel Answered on July 10, 2018.
Add Comment

There is the user activity report under the standard reports.

Agile Angel Answered on July 10, 2018.
Add Comment

@Steve Jones
This is user activity report only for logins count and login duration management here want to see what and when was modified by the single user.

@Arif
So far as I see SDK is quite useless the IQuery method is just Search wit Search Attribute but I can give it a try maybe it can accept HISTORY attributes.

Agile User Answered on July 11, 2018.
Add Comment

setCriteria for IQuery is succeeded for base ID 1002 and [Title Block.Description]

But for History:

Error code : 60029
Error message : Attribute “History.User” not found.
Root Cause exception : com.agile.util.exception.CMAppException: Attribute “History.User” not found.

Same if I try to use Base ID insted of name:

Error code : 60029
Error message : Attribute “1128” not found.
Root Cause exception : com.agile.util.exception.CMAppException: Attribute “1128” not found.

Which means SDK IQuerry implementation is very sloppy and do not give any real access to data somehow this is just a little more advanced standard search.

I solved my problem with SQL ITEM_HISTORY query, this is strange that agile contain good history details in SQL table but not exposed by the system.

Agile User Answered on July 12, 2018.

In SDK there is limitation on iterating through history of all the items at once purely due to data. However yes, ITEM_HISTORY and CHANGE_HISTORY table are normally used for searching activities w.r.t. parts or changes.

on July 19, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.