[rt-users] Is it possible to set CustomField in mailgate plugin?

Kevin Falcone falcone at bestpractical.com
Fri Jun 14 11:27:55 EDT 2013


On Fri, Jun 14, 2013 at 01:23:45PM +0200, pavel.sidlo at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130614/7cd2943e/attachment.sig>


More information about the rt-users mailing list