[rt-users] MultiValued fields

Kevin Falcone falcone at bestpractical.com
Mon Apr 8 16:13:15 EDT 2013


On Mon, Apr 08, 2013 at 03:35:09PM -0400, Kevin Holleran wrote:
>    When I have a multi-valued CustomField, how do I access the data?
>    What would this return?
>    my $policy_type = $ticket->FirstCustomFieldValue('Policy Affected Parties');
>    Is it a list of some sort? I need to look to see what values are to take various actions based
>    on this but how do I get at it and what do I get?

If you check the docs, it tells you pretty clearly what
FirstCustomFieldValue does on a multi-value CF.

http://bestpractical.com/rt/docs/latest/RT/Record.html#FirstCustomFieldValue-FIELD

Right below it are several other Custom Field related methods that are
probably useful.

-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/20130408/b71fc148/attachment.sig>


More information about the rt-users mailing list