+ Start a Discussion
Itayb34Itayb34 

Notify on Field Updates

Hello

 

I would like to know if it's possible to notify a user when there are field record changes. For example:case status was changed, priority was changed etc...

Structure of the email should be like this:

 

  • Who changed (I assume it can be "Last Modified By")
  • What was changed (Field and new value)
  • Link to case

I know that is possible to create a workflow and email for every field change, but i'm wondering if there's an elegant way (as I have around 10 fields)

 

Thanks

 

Itay

 

MagulanDuraipandianMagulanDuraipandian

Best way is trigger.

 

Regards,

Magulan D

Salesforce.com certified Force.com Developer.

 

SFDC Blog

 

If this post is your solution, kindly mark this as the solution.

Itayb34Itayb34

Do you have a sample code for it? 

vivek_2011vivek_2011

This is a good point. Any luck.

 

Thank you,

Itayb34Itayb34

not yet. Anyone?

 

As I described earlier, this can be done via WFR:

rule: whenever a record is created or edited

ISCHANGED (Status)

Action: Email

 

Email:

 

dear user

a field has been edited - Status to this value: {!Status}


Editor is: {!Last Modified by}

please click the following link to see more details

 

 

My only concern is that I need to create a WFR for each field change. So if I have 10 fields, I need to create 10 WFR with 10 different emails.

 

So i'm wondering if code can assist here (store the edited field name and value somehow...)

 

Thanks again

Leyden44Leyden44

An easy and in my opinion elegant way, is to follow the cases in chatter. In that case, you get updatet in real time, when something happens...

 

A good way to make sure, that the user follows the right cases is e.g. this App: https://sites.secure.force.com/appexchange/listingDetail?listingId=a0N30000003IUEeEAO