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
Sophia Abraham 6Sophia Abraham 6 

Salesforce Sandbox Developer Edition REST API access

Hi All,
I signed up for the developer trial edition.

I created a developer sandbox instance.

I've read from the docs that a developer account by default has REST API access. But when I try to make a query using the REST API i get the following error: 
  "message" : "The REST API is not enabled for this Organization.",
  "errorCode" : "API_DISABLED_FOR_ORG"

what am i doing wrong?

I've created a connected app and login was also successful.

Any help would be greatly appriciated.

Best Answer chosen by Sophia Abraham 6
Sudipta Ghosh 9Sudipta Ghosh 9
Hi Sophia,

1. Developer edition org --> https://developer.salesforce.com/signup
2. Connecting Salesforce over REST from Jave --> follow the below link and Section Authenticating REST Users. This link is for .NET, same approach for Java
https://developer.salesforce.com/page/Consuming_Force.com_SOAP_and_REST_Web_Services_from_.NET_Applications

Please let me know if you need more information

Regards
Sudipta

All Answers

Sudipta Ghosh 9Sudipta Ghosh 9
Hi Sophia,
Just to double sure, please check API enable check box in "Manage User -> User -> System Administraiton -> Administrative Permission".

What Salesforce edition you are in? Professional Edition doesn't have API  enable dy default. Please check again.

Regards
Sudipta

 
Sophia Abraham 6Sophia Abraham 6

Hi Sudipa,

Thank u for ur prompt reply.
I just check and I'm on a professional edition. Sorry for the confusion. I thought I'd signed up for a developer edition. Any Idea how to get a free Developer edition Trial?

And, I have another small question, if we are using java to connect to the REST API of a sandbox, what are the steps?

The login URL would be test.salesforce.com?

 

 

Anha Singh 7Anha Singh 7
hi Sudipa,
1. You can sign up with free developer edition org which dont expire unless you dont do any activity onto it for atleast an year.  Below is the link to create one.
https://developer.salesforce.com/signup
2. If you are using java to integrate with some other apps then you have first import the java libraries to the salesforce and then you can move with further integration.
This is for your kind reference.
https://developer.salesforce.com/page/Force.com_Database_for_Java_Developers

 
Sudipta Ghosh 9Sudipta Ghosh 9
Hi Sophia,

1. Developer edition org --> https://developer.salesforce.com/signup
2. Connecting Salesforce over REST from Jave --> follow the below link and Section Authenticating REST Users. This link is for .NET, same approach for Java
https://developer.salesforce.com/page/Consuming_Force.com_SOAP_and_REST_Web_Services_from_.NET_Applications

Please let me know if you need more information

Regards
Sudipta
This was selected as the best answer
Sophia Abraham 6Sophia Abraham 6

Hi Sudipta and Anha,

Thank you guys so much for your guidance. I was able to login to a trial developer account and create two custom objects.
And query them through REST API calls
 

{tushar-sharma}{tushar-sharma}
Hi Sophia,

You can check the link for complete detailed explanation: https://newstechnologystuff.com/2020/05/27/test-salesforce-rest-api-using-postman/