Jump to content

SCRIPT NOT SERVER COMPARTIBLE


This topic is 2391 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello everyone..

Guess I have been away for a while. Not fully back though because I am not really engaged with computer tech stuff at the moment. However, I really stumbled across a problem earlier today while going through my email logs. I observed that a server script I had set up has not been attaching the Pdf file report as supposed to. It only delivers the message while leaving out the file attachment. I did test the script when I added it but what I did not test was the result when run by the server.

 

Allow user Abort [Off]
Commit Records/Requests [No dialog]
Set Variable [$FileName;Value:"Summary"&".pdf"]
Set Variable [$PDFPath;Value:Get(TemporaryPath) &".pdf"]
Go to Layout ["Summary_Layout]
Perform Script ["Print_Page_Setup"]
Save Records as PDF [Restore;No dialog;"$PDFPath";Current record]
Send Mail [Send via SMTP Server;No dialog]

 

As at the time of my writing the script, I was not observant about server-side scripts. I did go back just recently to observe that the "Save Records as PDF" script step is not server compatible.

Please, is there any work around on this? Much help is appreciated.

Link to comment
Share on other sites

This topic is 2391 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.