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.

Help with setting up auto email on field changes

Featured Replies

Looking for some help in setting up an auto email to specific recipient when a field is modified.

What I'm looking to accomplish is when Sales Rep = X, and any field is modified, send an email to X. Ideally it would also include what field was changed as part of the email content.

Currently I have a single script setup (see attached) that when a rep logs in, it automatically goes to the Sales Rep Access layout, then if Sales Rep = X, it does an automatic find for their name in the Sales Rep field and only displays their accounts.

Screen Shot 2015-08-09 at 12.05.07 PM.jpg

Edited by HX_Guy

Currently I have a single script setup (see attached) that when a rep logs in, it automatically goes to the Sales Rep Access layout, then if Sales Rep = X, it does an automatic find for their name in the Sales Rep field and only displays their accounts.

 

This can be done a lot easier and more correct by using the built in access privileges. 

Since you are defining who "Sales Rep" is at the record level, couldn't you just have a relationship based on that field and match field in the Users table. With that I'm place, you could then get the email address via that relationship (theReationship::Email).

The more interesting part to me is the record modification. When would you trigger the email to be sent? You need to think this through rather thoroughly or else you may be generating many emails.

Hope this helps.

  • Author

I was thinking probably on record save would be the best way to set it up because as you said, if its on every field that could get a little out of hand.

I just have no idea how to set that up though. :/

Hi HX_Guy,

Here is a little sample file I zapped up. It uses field mod tracking. It does the following:

ON RECORD LOAD
- stores a list of fields present on the layout in a global
- stores the values of those fields in a global

ON RECORD SAVE
 - stores the current value of the fields

ON LAYOUT
- displays an EMAIL button if there has been a change
- Record Navigation to trap against navigation to another record without sending email

Also, included a REP table to store reps and their email addresses. Established a relationship based on the primary key of the REP. Pulling the name and email address via the relationship. See Send Mail script options.

Tear it apart, learn from it, and adapt it to your solution if it fits.

Good luck!  

mod_alert_email.zip

  • Author

Havne't had a chance to even open the app but wanted to thank you for taking the time to put that together and help out.

 

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.