Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Get(DocumentsPath) returns empty on Server Side script (sometimes)

Featured Replies

I have a server side script that runs on regular interval. One of it's jobs is to create an agreement PDF and upload it to a server.

I had this working fine on one solution and have now built it on another solution. The problem is that when I try to get the documents path I get nothing. 

 

It took me a while to understand what was wrong, because when I called the script with static parameters from another part  of my server side script , there was no problem - I got a value for documents path.

 

From what I can see both calling scripts run with full access priviliges. 

Can I "mess up" my contact with the file system with another earlier command or something?

The blue line in the picture with $path returns empty and lasterror is 0. Save records as PDF can not perform if I set $path to documents folder specifically either.

Any ideas?

This is on a FM16 Server. (win 2016)

DocumentsPath.png

  • Author

I think I found the answer - script is run with "Full access privileges", BUT, when I debugged what priveliges was actually used it was a privilege set we use with wpe. That did not have printing or exporting allowed.

 

  • Author

Tried re-login to Full access account - still no documents path.

I’d break it down and build up. Start with a script that simply sets the Get(DocumentsPath) in a field in a record in a temp table. Schedule this script to run using a full access account. Remember to establish context at the start of the script and perhaps bypass the onfirstwindowopen script. 

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.