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
hitzhitz 

Last Modifiy By and Date Value

Hi Experts,

 

I have schedulable batch class which updates few fields on Task Object every day. class working fine but issue here is that it will always change last modified date and Last Modified by. is there a way to stop automatically update Last Modified by and Last Modified Date ???

bujjibujji

Hi,

i am not a expert, as per my knowledge Last ModifiyBy and Date are the predefiened fields i don't think so we can restrict.

 

But i have a solution for this like create two custom fields like LastModfiyBy and LastModifiy_Date and store the intial values and display this fields in the page layout. And remove the Predefiend LastModifyByDate values in the PageLayout values. Use any flag to add only first time and make that flag to false.

 

It is just an idea in my mind. I am not sue it will help you or not. If it is wrong or not related ignore.

 

Thanks,

Bujji

hitzhitz

Hi Buiji

 

Thanks for reply. Same idea was already implemented but i dont want to create new fields.