function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Using the Enterprise and Partner wsdls


I want multiple orgs to be able to copy my apex code from my org, so I expected the Enterprise  to be best placed for this, but could also use the Partner wsdl and the query method to query ApexClass object.


But when I try to import the wsdl I get errors


The faultPartnerSoapSforceCom sobjectPartnerSoapSforceCom class are made, but not partnerSoapSforceCom


Error: partnerSoapSforceCom

Error: unexpected token: 'delete' at 670:51




you might be consuming partner/Enterprise wsdl in your org.

Since delete is reserved keyword in salesforce you cant use the same name in your code.

You have to rename the same with Delete__x or something you are comfortable with.


You have to do the same for all the reserved keywords like upsert,insert etc.


at all, you have to do it with

upsert, delete, merge, undelete, update




Yes Ive worked this out, you do have to do what you suggested but you have to have to do other things as well