How setForceUpdate method works?

Afsar Hussain
Kilo Guru

Hi,

I have gone through setForceUpdate method in product documentation and I saw that it is used to update records even if the field value does not change.

So, when using this method, does any field value changes or how we can know that particular record has been updated?

 

Regards,

Afsar

2 REPLIES 2

MayurGavhane
Tera Contributor

‘setForceUpdate’ is used to update records without having to change a value on that record to get the update to execute. ‘setForceUpdate’ is particularly useful in situations where you need to force the recalculation of a calculated field for all records in a table or when you need to run business rules against all records in a table but don’t want to have to change a value on the records.

 

mark helpful.

LorenzVdV
Giga Guru

The following fields will have been updated:

sys_mod_count
sys_updated_by
sys_updated_on