+ Start a Discussion
Yamini Bathula 15Yamini Bathula 15 

sobjectType field on duplicate record set

Hi,

I am trying to query SObjectType field from Duplicate Record Set object but getting below error
No such column 'SObjectType' on entity 'DuplicateRecordSet'. 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."

here is the dev refrence for that field https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_duplicaterecordset.htm.

Salesforce Support is also not much helpful. Has any one had this issue? If any one can help it would be great

 
veer soniveer soni

Hi Yamini,
Please check your field level security(FLS) on field as this error show when FLS is not given on field.
For Example : SELECT Id,My_Custom_Field__c  FROM Account
but in case if your My_Custom_Field__c  doesn't have FLS  then it will through this type of error.

Let me know if it helps you and mark it as  best so that it will be  helpful others in future.
Thank You

AbhishekAbhishek (Salesforce Developers) 
For further reference, you can check the below,

https://developer.salesforce.com/forums/?id=9062I000000QuR7QAK

https://developer.salesforce.com/forums/?id=9062I000000g9fCQAQ


And please check this Idea and Vote it,
https://trailblazer.salesforce.com/ideaView?id=0873A000000CY5XQAW



Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
Samiha LeeSamiha Lee
They are the ones that always aim at supplying the content of the highest quality go to this site (https://urgentpaperwriter.com/), and at meeting each customer’s needs. The student wants to purchase an essay because they have other responsibilities, such as caring for their children.
Abhishek BansalAbhishek Bansal
Hi Yamini,

The sObjectType field is available in the version 42.0 or later, so please make sure the class or trigger in which you are trying to use this field is equal to or greater than the 42.0 version.
Let me know if you still face the same issue.

Thanks,
Abhishek Bansal.