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
truetrue 

API_DISABLED_FOR_ORG: API is not enabled for this Organization -professional edition"

Hi,

Recently I have added "token" provided by salesforce.com. so rthat any of our client (professional/enterprise) can use integration.

IT seems one of the client (professinoal edition) cannot use this integration

I am getting this error:

"API_DISABLED_FOR_ORG: API is not enabled for this Organization "

 

What will be the possibility for this error:

1>Do we need to setup something on client salesforce account

2>some problem with token

3>some problem with code???

 

Thanks

Nupur

DevAngelDevAngel

Hi Nupur,

You mentioned that "one" of your clients is having a problem.  Is it really just one?  If so, they should contact customer support.

truetrue

Dev,

Thanks for the quick response. I am gonig to contact customer support. But it seems it is with professional edition and token.

Please confirm whether on code level I am doing it right. Thanks!!!

//Create service object for sforce

SalesForcePartner.WebReference.SforceService binding;

//------------------------------------------------------------

//Begin Login To SalesForce.Com

//------------------------------------------------------------

if (un.Length == 0)

{

return "Please Enter Your Username";

}

if (pw.Length == 0)

{

return "Please Enter Your Password";

}

binding = new SforceService();

binding.Timeout = 600000;

try

{

// modifying the code for token.Temporary token

binding.SessionHeaderValue = new SalesForcePartner.WebReference.SessionHeader();

// bind it to the current soap session

binding.CallOptionsValue = new CallOptions();

binding.CallOptionsValue.client = "test";  

loginRes = binding.login(un, pw);

}

catch (System.Web.Services.Protocols.SoapException e)

{

//return "Login Incorrect1";

return e.Message;

}

catch (Exception ex)

{

return "Login Incorrect";

}

 

Thank You

 

Nupur

Message Edited by DevAngel on 02-07-2005 10:09 AM

DevAngelDevAngel

Yes, it looks correct.

 

Please do not post you token on public forums.

truetrue

Thanks Dave,

I didn't posted the real one.(used test)

 

Nupur

VinayKumarVinayKumar

We have problem with all the users in the organization? What would be the issue? 

 

Any help will be be appreciated.

SuperfellSuperfell

API_DISABLED_FOR_ORG means your account/organization doesn't have API access. API access is not included with profesional edition for example.

Lorena VasquezLorena Vasquez
According to this article Zendesk and SF Professional should be able to integrate:
https://support.zendesk.com/hc/en-us/articles/203660026#topic_ptq_bqx_g4

The error message I'm seeing is slightly different "Error during transmission: Salesforce Login Failed (Account: xxx): LOGIN_OAUTH_API_DISABLEDFailed: OAuth Api Access Disabled"

Please help!