You need to sign in to do that
Don't have an account?
Calling metadata webservice via apex.
have created a webservice using metadata api in which i create a object in my salesforce org now i want to call this webservice in another salesforce org but i get webservice call out error everytime i execute it in my developer console.
Error -- Web service callout failed: WebService returned a SOAP Fault: System.CalloutException: Callout loop not allowed Class.MetadataService.MetadataPort.create
Error -- Web service callout failed: WebService returned a SOAP Fault: System.CalloutException: Callout loop not allowed Class.MetadataService.MetadataPort.create
While searching for this issue, I came across a user who faced a similar issue bacause a Call out cannot reference an object in another ORG - the workaround provided was to either use BATCH APEX or scheduler to perform the task asynchronously
can u please explain it more clearly...? beacause here i am creating object using metadata api.