Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element includeRecordsOwnedByAll #299

Open
ssj3096 opened this issue Dec 14, 2023 · 1 comment

Comments

@ssj3096
Copy link

ssj3096 commented Dec 14, 2023

While fetching sharing criteria Rules I'm getting error System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element includeRecordsOwnedByAll

MetadataService.MetadataPort service = new MetadataService.MetadataPort();
service.SessionHeader = new MetadataService.SessionHeader_element();
service.SessionHeader.sessionId = UserInfo.getSessionId();
MetadataService.SharingCriteriaRule sh=(MetadataService.SharingCriteriaRule)service.readMetadata('SharingCriteriaRule', new String[]{'SharingRuleName'}).getRecords()[0];

@lrock-eqt
Copy link

I also faced this same exception. Looks like a new element was added to SharingCriteriaRule by Salesforce that hasn't been addressed in the SharingCriteriaRule subclass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants