I am working on the Metadata API to create an Apex trigger dynamically. I have used Apex Wrapper Salesforce Metadata API from Github- https://github.com/financialforcedev/apex-mdapi.
The error is-
System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INVALID_TYPE: This type of object is not available for this organization faultcode=sf:INVALID_TYPE faultactor=2 Antworten
Hi Sunad,Greetings!Can you please double check the API name that you are using as well as the permissions on the same Objects are given to the specific user profile with which you are trying to access.Kindly 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.Warm Regards,Shirisha Pathuri