Send email notifications to multiple departments

Hi there,

I have added a new layout for VIP visits in the solution. I'm wondering how I can organize email notifications for each department based on checkbox selections. For example, if the GCEO is selected, two email addresses will receive the notification, and for Government Affairs, three email addresses.

The scenario is as follows: Security enters the visitor data, as shown in the screenshot below, selects the relevant destination department, and then presses submit.

The Send Mail script step is able to send to multiple email addresses. The FileMaker Pro Help documentation has all the information you need to do this.

1 Like

Thank you for your response. However, I've noticed that when selecting multiple departments, the script does not account for any that are unchecked. Could you please address this issue?

  1. I don't know the script so can't say much about it.
  2. Are you asking me to fix your script?

If you have any suggestions to address this, they would be greatly appreciated.

Look at G02 and G03. These are the values used for both the if conditions and the email addresses. Fairly certain that's wonky.

So sorry to reply delay, if the fairly certain that's wonky !do you have any suggestions on how to address this?

You are probably going to find me harsh here. I am willing to teach you to fish. I am unwilling to fish for you (unless you pay my hourly rate). I pointed out what appears to be a logical error in your code. Believe it or not, you have the knowledge to solve your code's problem. So go ahead and solve it.

2 Likes

Thank you for your kind words. I have resolved the issue and documented the solution here maybe someone search as my issue will be free.

1 Like

Based on the my requirement is working prefect.


2 Likes