[Arsperl-users] ARSperl help?
Brought to you by:
jeffmurphy
|
From: George B. <ge...@al...> - 2006-11-03 11:47:25
|
Hi All,
I'm new to the Arsperl API and I'm wondering if anybody can help. I'm
using Remedy-ARStools 0.7 to interface and I'm having trouble pulling
out a ticket:
#!/usr/bin/perl -w
use Remedy::ARSTools;
use Data::DumpXML;
use Data::Dumper;
# HPD:HelpDesk - HD's
# CHG:Change - CHG's
# CHG:Task - TSK's
@fields = ("Change ID+");
$remedy = Remedy::ARSTools::new( Server => remserver, User => "remuser",
Pass => "rempass", ConfigFile => "RemedyConfig.conf" ) || die
($Remedy::ARSTools::errstr);
$data = $remedy->Query(QBE => "1=9525", Schema => "CHG:Change", Fields
=> \@fields) || die $remedy->{errstr};;
print dumper($data);
When I run this, I get the following:
# ./foobar.pl
can't get ticket list: [ERROR] GetListFields must be an ARRAY reference
(ARERR #80005)
Is this a common mistake? Perhaps somebody could point me in the right
direction?
Thanks in advance,
George
|