You need to sign in to do that
Don't have an account?
David Gunn 17
Apex: How to access task.CreatedDate?
I have a new class that I'm trying to save but I'm getting this error: Error:
Compile Error: Variable does not exist: CreatedDate at line 25 column 27
This is where it's getting tripped up:
Compile Error: Variable does not exist: CreatedDate at line 25 column 27
This is where it's getting tripped up:
DateTime myDate = taskList[0].CreatedDate;taskList is a list of (passed in from a trigger) tasks. CreatedDate is a standard task field. Why is it getting a "variable does not exist" error?
All Answers
It's should work. Can you share the code see the error? i believe this was not an error
I think it should work too but it doesn't.
I tried this and got the same error: