You need to sign in to do that
Don't have an account?

Error: uncaught exception: API_CURRENTLY_DISABLED
Hi,
I am trying to create a apex page which creates a new Lead using the data input by a user. This is done through an ajax call which will not use any controller classes. My goal is to create a lead and redirect to another site. I have achieved this using the following code.
This works fine when executed in a page preview but throws an exception when the page is linked to salesforce sites.
Exception is follows.
Error: uncaught exception: {faultcode:'sf:API_CURRENTLY_DISABLED', faultstring:'API_CURRENTLY_DISABLED: API is disabled for this User', detail:{UnexpectedErrorFault:{exceptionCode:'API_CURRENTLY_DISABLED', exceptionMessage:'API is disabled for this User', }, }, }
Can anyone help me on this urgently?
Thanks
Wayohan,
First check the field level permissions for the fields that will be updated from the source.
We came across such error in integration with an external application. We rectified it by giving the correct field level permission for the user who will be pushing this data.
Thanks,
Bharath
Bharath,
I checked on this but field level permissions are similar to system administrator permissions. I still couldn't find a way to solve this. Any hints??
Regards
The Sites guest user doesn't have API access, which is what your clientside javascript is trying to use. Any reason why you don't want to create the record from the VF controller ?
It is easy to use a VF Controller but our target is to find an alternative way of doing this without using a controller. Thats why I tried AJAX way. Any workarounds for this
Regards
Create a new account as " Standard User" and if you're concerned about security whitelist the IP address for so the integration would work smoothly.