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 -kevin
pgp67JGKmglr7.pgp
Description: PGP signature
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Washington DC, USA October 31 & November 1, 2011 * Barcelona, Spain November 28 & 29, 2011
