I keep getting this error. Why?
List<Case> userCreatedCases = [SELECT Id, CreatedById FROM Case WHERE CreatedDated = 2005-10-08T01:02:03Z];
2 respostas
Hi Upton,Greetings!I can see that the field name that you have used is "CreatedDated" which should be CreatedDate only.You have entered "D" which is why you are getting the error.Please try the below SOQL query:
Please mark it as best answer if it helps you to fix the issue.Thank you!Regards,Shirisha PathuriList<Case> userCreatedCases = [SELECT Id, CreatedById FROM Case WHERE CreatedDate = 2005-10-08T01:02:03Z];