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
salesforcequestions123salesforcequestions123 

salesforce url

Hi I want to insert a account into salesforce when a customer is created in netsuite for this i need to build a url that would be invoked when a customer is created in netsuite  and insert a account in salesforce.

 

 

How can i build the url

 

please help

SamuelDeRyckeSamuelDeRycke

You can use the REST API for this, it should do everything you want. Take a moment to read through the documentation so you have a good understanding of it's potential.

http://www.salesforce.com/us/developer/docs/api_rest/index.htm

 

If you have more custom requirements, you can also build your own REST api, using the apex:

http://wiki.developerforce.com/page/Creating_REST_APIs_using_Apex_REST

 

 

 

 

 

 

salesforcequestions123salesforcequestions123

Thank u for u r valuable information but as i have a bit urgency i saw the create record in the pdf

 

it gave a uri

 

so is this the link that i can gcall from netsuite so a account will be inserted in salesforce

 

curl https://instance name.salesforce.com/services/data/v20.0/sobjects/Account/ -H "Content-Type: application/json" -d @newaccount.json -H "Authorization: Bearer token" -H "X-PrettyPrint:1"
SamuelDeRyckeSamuelDeRycke

I haven't got that much experience with the REST api myself, but that's basicly how it would work. I do think that you do still need to submit the account info in json in the message body. All the information should be in the documentation, I personally use SOAPUI to test api's, which I prefer over cURL.