[rt-users] ExtractCustomFieldValues, insert fixed value when match

Paul Tomblin ptomblin at xcski.com
Fri May 4 06:46:53 EDT 2012


On Fri, May 4, 2012 at 6:11 AM, Joshua Laroff <jlaroff at gmail.com> wrote:

> my $cf = RT::CustomField->new($RT::SystemUser);
> $cf->LoadByName(Name => 'Customer');
>
> ...

>
> $self->TicketObj->AddCustomFieldValue(Field => $cf, Value => $result);
> return 1;
>

Actually, I think you can just pass the field name into AddCustomFieldValue
and cut out looking up the name yourself.  At least that's what I've been
doing and it appears to work.

-- 
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120504/ab0e36fc/attachment.htm>


More information about the rt-users mailing list