Error Encountered While Accessing Custom Metadata Records Using Built-in Methods:
Error Message:
system.TypeException: Unsupported sObject type and/or version
Cause: This error occurs because the metadata type methods were introduced in API version 51. If your Apex class is using an API version lower than 51, it will not support these methods.
Solution: To resolve this issue, update the API version of your Apex class to version 51 or higher.
By updating the API version, you ensure that your Apex class can utilize the built-in methods for accessing custom metadata records without encountering the unsupported sObject type and/or ersion error.
Feel free to share your view and comments.
Comments
Post a Comment
Please Write your comment here.