You need to sign in to do that
Don't have an account?
Yamini 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
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
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
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.
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.