You need to sign in to do that
Don't have an account?

Invalid field case.status for CaseHistory
Hi everyone,
could you please help me in this
When I queried using Query editor, am able to fetch the records from case history. but
when I write in apex class as dynamic query using case history, am getting below error
12:43:35:070 USER_DEBUG [64]|DEBUG|The following exception has occurred: Invalid field case.status for CaseHistory
could you please help me in this
When I queried using Query editor, am able to fetch the records from case history. but
when I write in apex class as dynamic query using case history, am getting below error
12:43:35:070 USER_DEBUG [64]|DEBUG|The following exception has occurred: Invalid field case.status for CaseHistory
Make sure that all words are spelled correctly.
Try different keywords.
Regards
Rajesh
Make sure you have field history on status field
OR
I am able to fetch the deatils from QueryEditoe by using below query.
select caseid,case.status,case.createdDate,id from CaseHistory
but when I send this query to start method, I am not able fetch these details only id from CaseHistory is got fetched.
i checked the logs, i see error as case.status filed invalid value, if i remove it i see case.createdDate is invalid filed..
suggest me how to do this