Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Script trigger based on new record creation in external table


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

Recommended Posts

Posted

I would like to run a script whenever FM recognizes that a new record has been added to my external MySQL table (orders). Since I don't believe FM offers any native script triggering capability for this, my thought was to set a global field with the total number of records in the orders table and then run a scheduled server script which would compare the count in that global with the current count, post the orders, then set the global with the new count.

I think that would work but I'm concerned what would happen if one or more records get added to the orders table while the script is running.

I guess I could add a field to the orders table that FM could write to indicating an order has been posted and then do a find based on that.

Any 'best practices' suggestions for this scenario would be greatly appreciated.

Thanks!

This topic is 4644 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.