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
Sampada ambikar 9Sampada ambikar 9 

Getting Error:Field LastModifiedDate may not be used in this type of formula

Hi,
I am adding formula under custom field(Which needs to populate record Modified date).I am putting below formula
IF(LastModifiedDate <> CreatedDate ,
   IF( NOW() > LastModifiedDate+ 1/(24*60), LastModifiedDate, null ), null 
)
But getting Error:Field LastModifiedDate may not be used in this type of formula.I m new to salesforce...please help to resolve this issue
 
vijayabhaskarareddyvijayabhaskarareddy
HI@ Sampada
Your syntax is absolutely correct , but the way of creating formula field is wrong
if u  want to create a formula field pls follow below steps

Step1
User-added image
step2  select data field inside formula
User-added image

Kindly mark as a best answer, if it help u
Regards,
vijay