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.

Perform Find using Script Step "Perform Script on Server" fails

Featured Replies

Hello,  

I have been trying to figure this out for weeks and have gotten nowhere.  

I have a script that ran perfectly fine on server 17 and it also works when run locally on Pro 17 or 18, but it won't complete a perform find function when run on server 18.   I was wondering if anyone has experienced this and might be able to take a look at my script steps to see if I am causing something that isn't viable in server 18 scripting.  

The Pro or Go client calls a local script called "Send SMS to Server", then the server runs a script called "Send SMS on Server" . Here are screenshots of both scripts that were working on server 17.   

The script kicks back error 401 for no records found.   

I really appreciate your time looking at this and hope someone knows right away what the issue is.

 

Thanks

Chris Konash

 

 

1577376101_ScreenShot2019-09-25at11_17_00PM.thumb.png.1043ff14186da40a5dc3983d181110dc.png

 

 

1210180706_ScreenShot2019-09-25at11_16_49PM.thumb.png.8126864d359a10e54f8025c3afb3334f.png

 

 

Although you're passing $$SMSMessageID, you are not declaring the $SMSMessageId in the Send SMS Message On Server script. You need a Get ( ScriptParameter). Btw, you don't need this to be a $$var.

Also, you do not need line 10 - Go to Layout, because you can now New Window and Go to Layout in one step.

One more thing, the second script continues even if it fails between line 2-19. 

And remember that your PSoS script will first run your OnOpen script and subscripts if there are any.  The 401 error could happen there even before it gets to you script...

Yes, trap in your Open Script for Get ( Applicationversion) = "Server" and ( most likely ) Exit that 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.