So you are calling a process to generate the file and you are trying to find 
out what file is created?   How are you calling the process?  If it is from a 
$PROCESS$ in a Set Fields action then all it is to get the file name is to have 
the process you are calling echo the file name

Fred

From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Hyunkel v2.0
Sent: Tuesday, December 08, 2009 10:13 PM
To: [email protected]
Subject: Re: ARSPerl knowledge needed - Help!

**
Thanks Fred;

Actually we're searching for other ways, I'm trying to retrieve the file name 
from $PROCESS$ call but i don't know which command use.

Regards
Hugo Ruesga
perotsystems(r)
US  972.577.7000
MX +52 (33) 3332.3868
________________________________
Date: Thu, 3 Dec 2009 14:28:49 -0600
From: frederick.w.grooms
Subject: Re: ARSPerl knowledge needed - Help!
To: [email protected]


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
________________________________
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



_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

Reply via email to