Email Notification List of All Changed Fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2019 09:49 AM
Hi Everyone!
I am hoping to get some advice on email notifications. I would like to have an email notification that is triggered on a change to fields in a form. I want the email to include a list of all the fields that were changed. There seems to be some info about this in the community, but it all seems to be out of date. Most solutions seem to involve creating a business rule and are somewhat confusing.
Thanks for your help in advance!
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2019 10:47 AM
Below script will return the list of field names that are updated
var changedFields = [];
var fields = current.getFields();
var field;
for (var i = 0; i < fields.size(); i++) {
field = fields.get(i);
if (field.getName() == "variables")
continue;
if (field.changes()){
changedFields.push(fields.get(i).getName());
}
}
gs.log(changedFields);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2019 11:32 AM
Hi dvp!
Do I do that in an email script or a business rule?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2019 11:45 AM
You can do in either in business rule or email script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2019 11:57 AM
If I were to do it in an email script, how would I add the list to the body of the email?