Oh ... You are wanting to load the file on the system into an attachment field.
I think this should work as a template for you to work with...
my $remedyForm_Name = "MyTestForm";
my $entry_id = "000000000000001";
my %remedyForm = ars_GetFieldTable($Ctrl, $remedyForm_Name);
my $fid=$remedyForm{'Attachment Field'};
my $result = ars_SetEntry($Ctrl, $remedyForm_Name, $entry_id, 0,
7, 1,
$fid, { file => "/tmp/test", size => 0 } );
Alternately you can push the physical file name into a Display Only Field on
your form and use a filter to set the Attachment Field ( in the example below
it is 536870923 )
In a Set Fields Action set a field's value equal to: $PROCESS$
PERFORM-ACTION-ADD-ATTACHMENT 536870923 "$zTemp Attachment File Name$"
Fred
From: Action Request System discussion list(ARSList)
[mailto:[email protected]] On Behalf Of Hyunkel v2.0
Sent: Thursday, December 03, 2009 1:44 PM
To: [email protected]
Subject: Re: ARSPerl knowledge needed - Help!
**
Thanks for your response Fred, but i have problems to push the file into ARS. I
have a form with their attachment pool field, but I can't find a way to push
this file into ARS using perl.
Hugo Ruesga
perotsystems(r)
US 972.577.7000
MX +52 (33) 3332.3868
P Please consider the environment before printing this email
The information contained in and transferred with this electronic message is
intended only for the recipient(s) designated above, it is protected by law and
it may contain information which is privileged and confidential. If you are not
the intended recipient, please do not read, copy, or use it, and do not
disclose it to others. Please notify the sender of the delivery error by
replying to this message, and then delete it from your system. Thank you.
________________________________
Date: Thu, 3 Dec 2009 13:39:24 -0600
From: frederick.w.grooms
Subject: Re: ARSPerl knowledge needed - Help!
To: [email protected]
**
Yes you can use the ARSPerl module to Log In to Remedy and submit the data.
You could also use arimportcmd to do the load.
You could monitor the folder with a cron job that runs periodically to look for
a file in the directory and if it exists then process it.
Fred
From: Action Request System discussion list(ARSList)
[mailto:[email protected]] On Behalf Of Hyunkel v2.0
Sent: Thursday, December 03, 2009 1:12 PM
To: [email protected]
Subject: ARSPerl knowledge needed - Help!
**
Hi Listers;
I'm kind confussed about one requirement. I need to load a CSV file on a UNIX
Server and this file must be recorded/uploaded to ARS in order to get
proccessed with some perl scripts.
At this point I really don't know if with arsperl could i upload the file to
ARS to get processed.
I have the form where i need to store the file, but i have no idea on how
could i load this file, probably i'll need an escalation to monitor a folder on
the unix server, but i don't know how to upload the file.
Any ideas?
Hugo Ruesga
perotsystems(r)
US 972.577.7000
MX +52 (33) 3332.3868
_Platinum Sponsor: [email protected] ARSlist: "Where the Answers Are"_
________________________________
Windows Live y Samsung equipan tu casa. Participa y
gana!<http://www.equipatucasa.com.mx>
_Platinum Sponsor: [email protected] ARSlist: "Where the Answers Are"_
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"