0

I am trying to integrate salesforce Rest API with Django, so for hours I have been trying to figure out the endpoint which it exposes, I have learned to create records but how do I access those records as the URL mentioned in docs is

https://yourInstance.salesforce.com/services/data/v52.0/query/?q=SELECT+name+from+Account,

what is "yourinstance" here, any help will be appreciated, thanks in advance

when I tried to access the above URL in thunder client it gave me this error (new to salesforce)

Couldn't resolve the hostname to an IP address, Verify Url: https://trial65.salesforce.com/services/data/v52.0/query/?q=SELECT+name+from+Account
1

You might want to check how to Apply an OAuth Authorization Flow (as it is not clear how you are authenticating to the target org)

once you figure this part out, you will quickly notice that the instance is easily retrievable (basically, your salesforce subdomain+domain) and once you are able to retrieve an access token, you should be able to refer to the User Interface API Quick Start for retrieving data.

feel free to update your post for further clarification(s)

1
0

Salesforce instance refers to the server that your Salesforce organization lives on. Many Salesforce orgs (also referred to as an "instance") live together on the same server, a method of server management called "multi-tenancy".

Generally the instance will be something like na1.salesforce.com.

To find your instance name your organization under Setup->Company information as shown below.

enter image description here

Please find the below knowledge article for more details on it.

How to find the instance information

0

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.