On Fri, Jun 14, 2013 at 01:23:45PM +0200, pavel.si...@linuxbox.cz wrote: > I'v got a mailgate plugin in which i am trying to set value to Ticket > CustomField. > I'm using this method: > my ($st,$msg) = $args{Ticket}->AddCustomFieldValue( Field => $CFObj->id, > Value => $id, > RecordTransaction => 1 ); > > However this always fail with error message: > Failed to save CF value: 100 as value for CF. Error: Custom field 1 does > not apply to this > object > > This look like the CF value cannot be assigne just because the ticket > itself does not really > exist yet. Is it the problem?
What's the Action? Is this during creation or a correspond/comment? Normally folks do CF manipulation from Scrips rather than Mail Plugins. -kevin
pgp6LCm3e2fa6.pgp
Description: PGP signature
-- RT Training in Seattle, June 19-20: http://bestpractical.com/training