Manipulating field value in before update trigger

Posted by ngabrani on 11-Sep-2015 06:51

I want to change the value of the field based upon some calculation in the before update trigger and save that value rather than saving the user entered value for the field.

Posted by Chandrasekhar Gontla on 16-Sep-2015 09:10

Hi,

You can use Object Script trigger to update the field values by using 'Before Update' timing option.

Thanks and Regards,

Chandra.

All Replies

Posted by Chandrasekhar Gontla on 11-Sep-2015 06:58

Hi,

As you are not dealing with user entered data value, you can use Update Field Value trigger.

But this trigger will execute 'After Create|After Update' but not Before Create|Before Update as per design.

Thanks and Regards,

Chandu.

Posted by Chandrasekhar Gontla on 16-Sep-2015 09:10

Hi,

You can use Object Script trigger to update the field values by using 'Before Update' timing option.

Thanks and Regards,

Chandra.

This thread is closed