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
Barbara NilaBarbara Nila 

CreatedDate error

Hello,
Why is TODAY() - DATEVALUE(CreatedDate) throwing an error? It keeps telling me "Field CreatedDate may not be used in this type of formula" but I know this is how I need to start out my formula.  What am I doing wrong?
Danish HodaDanish Hoda
Hi Barbara,
May I know why aren't you trying NOW() - CreatedDate?
Barbara NilaBarbara Nila
Of course! One of the challenge requirements is to use TODAY() .
Danish HodaDanish Hoda
Hi Barbara,
I tried in my org, and it is working fine. Please check if you are using Formula Return Type as Number.
Barbara NilaBarbara Nila
Hi Danish, 
I got it figured out. I was using the incorrect field type. Thank you so much!! I couldn't believe myself once I realized my mistake. Such a silly oversight.