Re: ARSperl - GetFieldTable and GetFieldByName
Brought to you by:
jeffmurphy
|
From: Miriam Y. <mir...@gs...> - 1996-12-06 17:25:56
|
actually ars__GetFieldTable never displays any error messages it just doesn't
store anything in the associative array - only the first time I ran the script
it did - and after that it hasn't:
%fields = ars_GetFieldTable($ctrl, $schema) || die "Can't retrieve field names
$ars_errstr";
When I print out the fields array it doesn't print anything:
foreach $fieldname (sort (keys %fields)){
print "$fieldname \n";
}
And so when I call ars_CreateEntry - it fails because it doesn't contain the
field ids:
ars_CreateEntry($ctrl, $schema, $fields{"Email From"}, $sender, $fields{"Email
To"}, $receiver, $fields{"Email Size"}, $size, $fields{"Message-ID"}, $msgid,
$fields{"Message Date"}, $date, $fields{"Submitter"}, $submitter,
$fields{"Infosec Person"}, $referred, $fields{"Employee Relations Person"},
$Relations, $fields{"History"}, $history, $fields{"Description of contents"},
$contents, $fields{"Type of information in email"}, $type,
$fields{"Assigned-to"}, "Shabbir Safdar") || die "Can't create ticket
$ars_errstr";
All help will be greatly appreciated.
Miriam Yaged
Information Security
Goldman Sachs, & Co.
(212) 357-1939
|