Loading

Use LastReferencedDate and LastViewedDate fields in a SOQL query

게시 일자: Oct 13, 2022
상세 설명

If you use the LastReferencedDate or LastViewedDate in a query on a custom object, you may receive this error message 

INVALID_FIELD: 
select id, LastViewedDate from my_custom__c
^
ERROR at Row:1:Column:12
No such column 'LastViewedDate' on entity 'my_custom__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
솔루션
To resolve this issue, create a custom tab for the custom object. 
The fields LastReferencedDate and LastViewedDate are stored as part of the tab, and do not exist for the object until a tab is created. 
Knowledge 기사 번호

000382652

 
로드 중
Salesforce Help | Article