[rt-users] RT-Extension-FormTools examples

Kevin Falcone falcone at bestpractical.com
Wed Mar 28 16:00:50 EDT 2012


On Wed, Mar 28, 2012 at 10:51:14AM -0700, David Good wrote:
> On 3/27/2012 5:36 PM, Kevin Falcone wrote:
> > On Tue, Mar 27, 2012 at 03:08:53PM -0700, David Good wrote:
> You're right -- QuickCalls is exactly what we need.  You can set Custom
> Fields as well, you just have to know the field's ID and then to set its
> value you'd use 'CustomField-<id>' instead of the field name, like this:

Oh, good, that was my guess but I wasn't sure.  It get's complicated
to load CFs by name.

> Set($QuickCalls,
>     [
>         {
>             Name   => 'New Account Request',
>             Queue  => 'Helpdesk',
>             Status => 'open',
>             'CustomField-3' => 'Your desired Custom Field value',
>             SetOwnerToCurrentUser => 1,
>         },
>     ]
> );
> 
> The SetOwnerToCurrentUser option is nice, too.  It should probably be
> documented somewhere -- I only found it when I was poking around trying
> to figure out how to set Custom Field values.
> 

Feel free to send a doc patch over to the rt.cpan queue.  I believe
the feature was contributed as a patch and the lazy applier (probably
me) forgot to request docs or write them.

-kevin
-------------- 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/20120328/7c19a3bc/attachment.sig>


More information about the rt-users mailing list