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.

Automated email based on number of accounts found

Featured Replies

Good afternoon,

I am trying to create a script that performs a find, gets the found count number. Let's say 20 records are found. And then performs a loop through each record, gathering the data from 3 fields and setting variables, IE record 1 effective date field, variable $effdate1, record 2 $effdate2, etc and then puts all of this information into a body of an email.

I'm trying to list out all 20 of these records line by line in an email with the 3 fields of data. Example:

Record 1: Field 1, Field 2, Field 3

Record 2: Field 1, Field 2, Field 3.

 

What is the best script or function to list out all the variables, when the number of variables is unknown. IE depending on the found count, the body text will change.

Any help would be greatly appreciated. Thank you

If after performing the find you do:

Go to Record/Request/Page [ First ]
Loop
   Set Variable [ $body; Value:List ( $body ;
                  YourTable::Field1 & ", " & YourTable::Field2 & ", " & YourTable::Field3 )
                  ]
   Go to Record/Request/Page [ Next; Exit after last ]
End Loop

you will end up with the $body variable containing a list with a line for each record in the found set, where each line contains the contents of the three fields, separated by a comma.

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.