[rt-users] Transaction->CustomFieldValues in scrips

Anders Ekstrand anders.ekstrand at drutt.com
Mon Aug 8 09:33:12 EDT 2005


Hi all,

In RT 3.4.2, I'm trying to read a transaction's custom fields with a
scrip like:

-------------------
my $Transaction = $self->TransactionObj;
my $CustomFieldValues=$Transaction->CustomFieldValues("Name-of-CF");
$RT::Logger->error( "Parsing transaction custom fields:");

while (my $CustomFieldValue = $CustomFieldValues->Next) {
	$RT::Logger->error( "Custom Field: ".$CustomFieldValue->Content
);
};

$RT::Logger->error( "Done!" );
return (1);
-------------------

I have seen some postings about the same issue, but they all seems to
come down to that it doesn't work.

Is that really the case?


Best Regards - Anders Ekstrand



More information about the rt-users mailing list