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.

How to filter the email addresses to be used in the “send email” script step Ask Question

Featured Replies

  • Newbies

In FM18, I have two tables: "documents" and "recipients".

The "documents" table has (among others) the "owner" attribute, while the "recipients" has the attributes "department" and "emailAddress".

I'm working on a script that sends an email message to all the email addresses included in the records having recipients::department = documents::owner.

The script is executed when clicking on a button in a layout related to the "documents" table.

In the "send email" option form, I have selected "Collect addresses across found set" but now, what should I put in the calculation?

Below you can find some script (they are in Italian) and the relationship screenshots


enter image description here

 

enter image description here


The script as is now sends the email to the correct addresses. However, it sends an email for each record in the table and not only for the current record.

I'm not sure how to limit the number of sent email just to one.


Thanks,

S

Create an account or sign in to comment

Important Information

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

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.