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
SARTHAK GARG 4SARTHAK GARG 4 

getting this error:-No such relation 'RecordType' on entity 'Knowledge__kav'. 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.

Shravan Kumar 71Shravan Kumar 71
If you are trying to get the record type ID then use RecordTypeID and if you need record type name then use RecordType.Name
SARTHAK GARG 4SARTHAK GARG 4

Using that only
,in query editor its working fine.

Can i send you a consolidated email about the issue i am facing right now
 

SARTHAK GARG 4SARTHAK GARG 4
The main issue i am getting is posted on success.salesforce.com----- https://success.salesforce.com/answers?id=9063A000000pxi1QAA
Lokesh KumarLokesh Kumar
Hi Sarthak, Try using RecordTypeId instead of Recordtype.Name.
Justin Price 21Justin Price 21
I ran into this issue, i was able to resolve this by updating my classes meta class or version settings to the most recent api version in this case it was 48.
_______________________________________
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>48.0</apiVersion>
    <status>Active</status>
</ApexClass>
_________________________________________________________