[rt-users] Fetching custom field id by a non-unique name

Maciej Dobrzanski reg.bestpractical at posterus.com
Fri Mar 23 17:00:49 EDT 2012


Kevin,

> Make a custom fields collection, LimitToLookupType and also use Limit to
limit on 
> the Name.  Call CustomFields on a Ticket or User object and then Limit
that collection to a 
> particular name.

Somehow I was perceiving using RT::CustomFields as not very efficient way to
do it. I was afraid it would be scanning all fields, but I can now see that
the filters there can work pretty well even on the SQL layer. Thanks.

Maciek




More information about the rt-users mailing list