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.

Sending separate emails to all records in table?

Featured Replies

Hello all,

I'm using the script below to send emails with a PDF attachment contained in the record. However, I'd like the script to do this for each record in the table as currently it will only create one email for the record that is being viewed (I tried selecting the "multiple emails" field in the Send Mail setup but it didn't work). I figure this is probably an easy one, but I don't much about scripting yet. 

Anyone know how I can add a loop to do this for all records? 

Thanks!

image.png.fa6caee78b400eec9bbdbd7d761fad50.png

Edited by Dirigo

Start by finding the records you want to take part in this. Then go to the first record and loop:

Show All Records
Go to Record/Request/Page [ First ]
Loop
  # YOUR CURRENT SCRIPT STEPS HERE
  Go to Record/Request/Page [ Next; Exit after last ]
End Loop

 

  • Author
20 hours ago, comment said:

Start by finding the records you want to take part in this. Then go to the first record and loop:


Show All Records
Go to Record/Request/Page [ First ]
Loop
  # YOUR CURRENT SCRIPT STEPS HERE
  Go to Record/Request/Page [ Next; Exit after last ]
End Loop

 

Thanks! This seems to do what I need, but with some quirks.

For some reason, if I'm using the "email client" option (which, of course is slow), it creates two emails for record. If I use SMTP, it creates 75 (!) emails for each record (75 is the number of records in the table). 

Any insight on how to get this down to one email per record using SMTP? 

Thanks again for the loop tip.

 

Without seeing your script, I can only guess. Are you sure you have the option One email using data from the current record selected?

  • Author
2 minutes ago, comment said:

Without seeing your script, I can only guess. Are you sure you have the option One email using data from the current record selected?

Doh! That was my mistake, had it set to "multiple". Works like a charm now - thanks again! 

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.