function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SergiSergi 

apex trigger checks modified field

It's possible to check if a field has been modified with an after update trigger?

Similar to the workflow rule condition ischanged(field_name)

 

I want to take some actions if the ownerId field from Account has changed. 

Best Answer chosen by Admin (Salesforce Developers) 
Sebastian75Sebastian75

Hi Sergi,

 

Take a look at my answer to this post:

http://community.salesforce.com/sforce/board/message?board.id=apex&thread.id=25051

 

It should help you out.

All Answers

Sebastian75Sebastian75

Hi Sergi,

 

Take a look at my answer to this post:

http://community.salesforce.com/sforce/board/message?board.id=apex&thread.id=25051

 

It should help you out.

This was selected as the best answer
SergiSergi

Hey Sebastian,

thanks for the reply, it worked fine :) 

SrinuSrinu

Hi Sebastian,

 

  Thanks for ur code. I have got the same requirement. Your code helped me out to solve my requirement.