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
rrichardrrichard 

Issue with Professional Edition

Hi,

We have a customer seeing following error message when using Professional Edition:
API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner

Our application uses the Partner WSDL and we are setting the clientid as follows:

binding = new SForce.sforce.SforceService();
binding.Proxy = Proxy;
binding.SessionHeaderValue = new SForce.sforce.SessionHeader();
binding.SessionHeaderValue.sessionId = sUserSessionId;
binding.Url = sServerURL;

CallOptions co = new CallOptions();
co.client = "MyClientId";
binding.CallOptionsValue = co;

Is there anything missing?

Thanks
rrichard
DevAngelDevAngel
Are you setting up this header for client id prior to the login call?
rrichardrrichard
There is no login call, they're reaching our app from a web integration link. We're intiailizing the binding with serverUrl and userSessionId.
DevAngelDevAngel
Hmm...

I guess the best thing to first is to examine the SOAP message to make sure the header looks correct and that the value being set looks correct. If all looks well send me an email.
rrichardrrichard
The problem was in our code. Thankyou for the fast response and the help.