Scheduling a Process in PeopleCode

Your rating: None Average: 3.4 (5 votes)

Here is a great example of how to schedule a process and email the results from within PeopleCode. You can do this within an App Engine Program or even by placing a push button with FieldChange peoplecode.

Local ProcessRequest &RQST;
Local string &Subject;
Local string &Text;

&Subject = "Subject of Email";
&Text = "This text will be displayed as the text of this email ";
&RQST = CreateProcessRequest();
&RQST.ProcessName = "PROCESSNAME";
&RQST.RunLocation = "PSNT";
&RQST.ProcessType = "SQR";
&RQST.OutDestType = "Email";
&RQST.OutDestFormat = "PDF";
&RQST.OutDest = "User : PS,Role : PeopleSoft User";
&RQST.EmailSubject = &Subject;
&RQST.EmailText = &Text;
&RQST.EmailAttachLog = False;

Please try to help out with unanswered topics on the forum. Chances are you have had the same issue/question some time in your IT career!


Have a question? Please ask it on the forum instead.
Jack's picture
Jack (not verified)
Re: Scheduling a Process in PeopleCode

But here how can I be sure of the FROM email ID which is being sent to User : PS,Role : PeopleSoft User ? I want to know how to control the FROM email address.

Guest's picture
Guest (not verified)
Re: Scheduling a Process in PeopleCode

Did You figure out how to do it ?

I am facing same issue.

Guest's picture
Re: Scheduling a Process in PeopleCode

Is there a way to access the output file generated post completion of the process and sent it as an attachment over an email?