Grabbing CF's from ticket

Hello All,

I have a ticket queue with a bunch of CF’s wrapped around it. What im
trying to do is, on creation of that ticket, I want to dump all the
custom field values into the email using a template that creates an
approval ticket. All that stuff is done, but im not to sure how to grab
the values from the cf’s and put them into the approval ticket.

Any help would be appreciated.

Ben

Ben Blakely wrote:

I have a ticket queue with a bunch of CF’s wrapped around it. What im
trying to do is, on creation of that ticket, I want to dump all the
custom field values into the email using a template that creates an
approval ticket. All that stuff is done, but im not to sure how to grab
the values from the cf’s and put them into the approval ticket.

I use this code, which is simply code I pulled from the RT wiki site:

{ my $values = $Ticket->CustomFieldValues(‘Vendor Ref Num’);
my $OUTPUT;
while ( my $value = $values->Next ) {
$OUTPUT .= "Your reference number: ";
$OUTPUT .= $value->Content;
$OUTPUT .= “\n”;
}
$OUTPUT;
}

In my case there can be multiple vendor reference number so I put them
into the e-mail one per line. I put this code into a custom
correspondence template.

Barry

http://wiki.bestpractical.com/index.cgi?AddCustomFieldsValuesToMail
and templates section at http://wiki.bestpractical.com/index.cgi?ContributionsOn 7/5/06, Ben Blakely BBlakely@blink.ca wrote:

Hello All,

I have a ticket queue with a bunch of CF’s wrapped around it. What im trying
to do is, on creation of that ticket, I want to dump all the custom field
values into the email using a template that creates an approval ticket. All
that stuff is done, but im not to sure how to grab the values from the cf’s
and put them into the approval ticket.

Any help would be appreciated.

Ben


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

We’re hiring! Come hack Perl for Best Practical:
http://bestpractical.com/about/jobs.html

Best regards, Ruslan.