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
Bulent703Bulent703 

API Access Disabled for Communities

Hi,

 

I started experimenting with the new Summer 13 communities and saw that if I use the Flex toolkit I get the "API Access Disabled for Communites" error. Is there a way to enable API access?

 

Thanks!

Vinita_SFDCVinita_SFDC

Hello,

 

Yes, this permission has to be enable on this Org for API access. For this a log a case with support stating "enable "API enable" permission on this community".

DyanstyddDyanstydd

I got the same message when I try to call DML in ajax.

 

I'm afraid you can only use APEX to do this.

 

See:

http://boards.developerforce.com/t5/Force-com-Sites-Site-com/API-currently-Disabled-Error-Sites-Development/td-p/128239

Bulent703Bulent703

I got the answer from Salesforce support.

 

It looks like the communities pages actually deliver the server URL as a community URL. This is the problem. Instead, you need to use the https://packagename.naX.salesforce.com/... URL instead of what the API.Parner_Server_URL gives you back.

 

I don't believe this should be the correct behavior but the support said that this is working as designed.

 

Here is another post on this:

 

http://boards.developerforce.com/t5/Visualforce-Development/Api-Partner-Server-URL-returning-different-URL/td-p/349303