[rt-users] Searching for values in a custom field identified by ID?

Kevin Falcone falcone at bestpractical.com
Tue Oct 25 12:25:20 EDT 2011

On Tue, Oct 25, 2011 at 01:48:30PM +0200, tobiasbp wrote:
> Hello list.
> I'm looking for resolved tickets with the value of 0 in the custom
> field called "Invoice no." like this:
> $tickets->FromSQL('("CF.{Invoice no.}"=0 AND Status = "Resolved")');
> The above works, but I would like to refer to the custom field by its
> ID. How should i formulate my search?

Why do you want to use the ID?
If you're worried about name changes, just load the CF and use the
->Name method to ensure you're always using the up-to-date name

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111025/43e3463f/attachment.sig>

More information about the rt-users mailing list