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.

Need to compile records for email message

Featured Replies

Hi,

I'm using the Send Mail script step and have made a calculation for the message of the email.

I'd like to email something like this:

Contact #??? 50777

---------------------

Information:

---------------------

Name: Scott Bobcat

Address: 72 Marietta Street NW

Phone: 322-526-5673

Email: [email protected]

My calculation looks like this:

"Contact #: " & " " & contact ID &

Loop over all the records of the found set.

  • Author

thanks for the reply...

can I loop within a calculation? I'm not sure how to do that.

If I looped in the script (outside of the Send Mail script step) it would send individual emails for each record - not good.

You'll need to create a single email body part with all the information you want to display included. To do this you can create a global text field and loop through all the records in your found set concatenating each calculated field with your global field. This is subject to the maximum number of characters allowed in the global field (64K in FM6, 2G in FM7).

-bd

  • Author

Thanks Brent,

I actually tried this before but failed to deselect "Select entire contents"

in the script. It just hit me.

Thanks

Jaime

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.