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

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

Recommended Posts

Posted

Hey Im new to this filemaker game, I ve got a DB setup now I require my DB to send automatic emails when the 'deadline date' = the current date.

Any help very much appreciated

Posted

Hi Dec

it all depends on what other criteria you mean to apply to your decision.

For instance do you want to send an email for all the records that meet the date deadline or some of them. And if some of them....which ones?

Really need that info before we can best advise you

Phil

Posted

OK then

You will need to be on a layout that displays the field due date from the file that you want to get your records from. You will also need a script along these lines

Show all records

enter find mode

set field duedate;Get(CurrentDate)

Perform find

Go to record first

Loop

Send email

Go to record next;exit after last

end loop

Show all records

That is a very basic structure for a script that will find all the records where due date = the current system date of your computer and then starting from the top will go from one record to the next until it gets to the end of the found set. At each record it will send an email (which you obviously have to specify details for) and once it has gone through the lot it clears the found set.

This script, once developed can be attached to a button for manual triggering or you could include it as part of your startup script that can be nominated to run each time you open a file (under file options).

Either way you might want to think about marking records as 'email sent' so that in the case of the button being pressed twice a day or the file being opened more than once a day the same customers do not get more thatn one email

Hope that gives you some food for thought

Regards

Phil

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