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.

Server Script to email when expiration date has past

Featured Replies

I have a number of databases that contain records that expire when certain date fields pass. Can I set a server script to check the date each day and send an email notification if the record is expired?

Thanks,

Bill

"I have a number of databases that contain records that expire when certain date fields pass."

What do you mean by "number of databases?" Since "database" is not really a FM term, do you mean FM hosted files that are not related?

However, it doesn't really matter. Just write a script which runs daily that finds records that are expired (date less than today?), loop thru them and send an email. If none found, then halt. Let us know if you need a more detailed explanation.

  • 2 weeks later...
  • Author

I created a script to check for expired records, but am receiving errors for unsupported server side script steps. Can someone review the attached script and tell me what is unsupported by the server?

Thanks,

-Bill

"I have a number of databases that contain records that expire when certain date fields pass."

What do you mean by "number of databases?" Since "database" is not really a FM term, do you mean FM hosted files that are not related?

However, it doesn't really matter. Just write a script which runs daily that finds records that are expired (date less than today?), loop thru them and send an email. If none found, then halt. Let us know if you need a more detailed explanation.

Not seeing an attachment. You can easily see which steps are unsupported by selecting "Server" in the compatibility popup in the lower left corner of ScriptMaker.

  • Author

Thanks. I figured it out. I was running a client-side opening script, which had a"Move/Resize Window" step that isn't compatible with the server.

Once again, many thanks to the FMForums experts!

-Bill

Not seeing an attachment. You can easily see which steps are unsupported by selecting "Server" in the compatibility popup in the lower left corner of ScriptMaker.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.