3

I created a developer account here

Followed Creating a Connected App on https://trailhead.salesforce.com/modules/mobile_sdk_native_android/units/mobilesdk_android_getting_started

Cross checked if API is enabled from System Administrator Profile

enter image description here

Connected APP Settings:

enter image description here

Now from the Trailhead app I login with Email and Password of a Trial account(Professional Edition) I created on Salesforce Dev. It logs in fine but the API calls like Fetch Contacts/Accounts throw:

[{"message":"The REST API is not enabled for this Organization.","errorCode":"API_DISABLED_FOR_ORG"}]

However those APIs work with a Username and Password.

Questions:

  1. If I create a Developer account, add a connected app and integrate Salesforce into my Android app will any other User with a Salesforce account(non-developer) be able to login and access the API? Like in the Salesforce1 Android App
    1. Username exists only for Developer accounts?
  • Per the previous question the connect APP defines the access your app has to the users org. If the user is on PE then your app cannot connect. if you are registered as an ISV you can get an API key so your app will work. Someone here may be able to give you details. If you want to test your app, use a user from an org that is EE or above – Eric Feb 10 '17 at 3:22
2

API access for professional edition will disabled by default and you will need to contact salesforce to get it enabled .

To request API contact via your partner org

https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/dev_packages_api_access.htm

https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/appexchange_faq_request_api_token.htm

You should fine using a developer org .Sign up with a developer org and you can access REST and SOAP API's

  • Sign up with a developer org and you can access REST and SOAP API's This is for anyone who wants to user Salesforce from my app? Because most likely this will be disabled on User accounts. Salesforce1 Android app doesn't have this restriction? – Archie.bpgc Feb 10 '17 at 3:22
  • Yes the user on the dev org can access rest and API in the dev org. If the user logging in using your connect app credentials it is to that users org and if PE they do not have rest or api enabled so your app cannot access it. Logging in via your app does not log them into the org where your app resides – Eric Feb 10 '17 at 3:24
  • 1 thing that confuses is that the same account(Dev Edition) is able to access API when logged in with Username, but not with the Email. What is the difference? Because even if I get an enterprise edition(non-dev) that might have the same issue because there is no Username. – Archie.bpgc Feb 10 '17 at 3:30
  • @Archie.bpgc - You cannot login using an email. You can only login using a username. Usually the username is your email address but it could be a different address. (Unless you are using SSO then I guess a username other than an email address would work) – Eric Feb 10 '17 at 5:48
  • @Eric I see. So to sum up using just a Developer account I can connect an app and integrate Salesforce in my android app. To be able to access the APIs depends on the User who logs in? i.e they must be using Dev or Higher than PE right? – Archie.bpgc Feb 10 '17 at 10:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.