PeopleSoft Add Attachment to FTP Server Location

PeopleSoft Add Attachment to FTP Server Location

/* This URL will be the FTP URL, where file needs to be placed on the server location */

&url = "URL.FTP_TEST_URL";

/* The system will add the &ATTACHSYSFILENAME BEFORE THE FILE name selected by the user */
& Nameofattachuserfile ='';
&ATTACHSYSFILENAME = "ATTACH";
&ATTACHUSERFILE = &Nameofattachuserfile;
&FILESIZE = 5120; /* Size is 5 MB */
&FILEEXTENSION = "";

&Retcode = AddAttachment(@(&url), &ATTACHSYSFILENAME, &FILEEXTENSION, &ATTACHUSERFILE, &FILESIZE);

Use Winmessage to check the &Retcode. If the &Retcode is 0, then the file is placed at the FTP location.


No comments:

Post a Comment