Hi,
is there a change to get the custom field id by the CF name ?
my $fieldId =
$self->TransactionObj->getCustomFieldIdByName(“CF-Summary”);
I would like to replace the field number with the name
to make the code more robust.
– ----
Trigger if custom value changed
return undef unless ( $self->TransactionObj->Type =~ /CustomField/i );
Field 29: “CF-Summary”
my $fieldId = $self->TransactionObj-> getCustomFieldIdByName
(“CF-Summary”);
my $fieldId = 29;
return undef unless ( $self->TransactionObj->Field == $fieldId );
– ----
Kind regards
Danny
Hi,
my $cf_obj = $self->TicketObj->LoadCustomFieldByIdentifier(“Summary”);On Thu, May 19, 2011 at 11:36 PM, Daniel Schwager Daniel.Schwager@dtnet.de wrote:
Hi,
is there a change to get the custom field id by the CF name ?
my $fieldId =
$self->TransactionObj->getCustomFieldIdByName(“CF-Summary”);
I would like to replace the field number with the name
to make the code more robust.
– ----
Trigger if custom value changed
return undef unless ( $self->TransactionObj->Type =~ /CustomField/i );
Field 29: “CF-Summary”
my $fieldId = $self->TransactionObj-> getCustomFieldIdByName
(“CF-Summary”);
my $fieldId = 29;
return undef unless ( $self->TransactionObj->Field == $fieldId );
– ----
Kind regards
Danny
Best regards, Ruslan.
Hi Ruslan,
my $cf_obj = $self->TicketObj->LoadCustomFieldByIdentifier(“Summary”);
works perfectly - thanks very much !!
best regards
Danny