Placing 2 CF in RT ticket subject

I am trying to create a script which will pull 2 custom field values into the RT
ticket subject upon creation.
I am able to do it with one using script below, but
unable to manage to pull 2 CF values, is this possible?

my $subject = $self->TicketObj->FirstCustomFieldValue(‘Custom Field Selection’)

$self->TicketObj->SetSubject($subject);

I am trying to create a script which will pull 2 custom field values into the RT
ticket subject upon creation.
I am able to do it with one using script below, but
unable to manage to pull 2 CF values, is this possible?

my $subject = $self->TicketObj->FirstCustomFieldValue(‘Custom Field Selection’)

$self->TicketObj->SetSubject($subject);

my $field1 = $self->TicketObj->FirstCustomFieldValue(‘Custom Field Selection’);
my $field2 = $self->TicketObj->FirstCustomFieldValue(‘Other Custom Field’);

my $subject = “$field1 $field2”;

$self->TicketObj->SetSubject($subject);

or something like that.

Tim.

The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.

Hi,

How about something like:

my $subject = sprintf(“%s %s”,
$self->TicketObj->FirstCustomFieldValue(‘Custom Field 1’),
$self->TicketObj->FirstCustomFieldValue(‘Custom Field 2’);

Best Regards

Martin WheldonOn 2012-12-29 08:48, Nums wrote:

I am trying to create a script which will pull 2 custom field values
into the RT
ticket subject upon creation.
I am able to do it with one using script below, but
unable to manage to pull 2 CF values, is this possible?

my $subject = $self->TicketObj->FirstCustomFieldValue(‘Custom Field
Selection’)

$self->TicketObj->SetSubject($subject);

!DSPAM:9,50def36133231913920786!