Skip 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.

Triggering script based on new MySQL record

Featured Replies

I'm running a FM back end with a relationship to an external MySQL table, in this case users_mysql. Is there a way to trigger a FM script whenever a new MySQL user record is created?

All I've been able to think of is to have a get( found count) field and then run this throughout the day:

If $$recordCount < $currentRecordCount and run the script if it's true.

Thanks for any thoughts...

I'm not an expert in MySQL but, as you haven't yet received a reply, I'll do my best. There are triggers in MySQL. These are bits of code that are triggered when an event occurs. Your event would be new record creation. It says here:

http://dev.mysql.com/doc/refman/5.0/en/faqs-triggers.html

that triggers can now call stored procedures or external applications so this would be a way of achieving what you want to do. You could do it via a Python or Perl script as I'm pretty sure these languages have an interface to both mySQL and to Filemaker. Maybe there is a direct way to call an FM script from within mySQL?

  • Author

Good stuff. Thanks so much!

  • Author

I am actually. You 're obviously considerably more knowledgeable on this topic than I, but how does that make any difference if FM is not seeing the record unless I run some kind of timed script?

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.