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
Detlef BrendleDetlef Brendle 

Best way to create/update/delete user/account data

Hi,
i would like to know what would be the best way to modify data of my Salesforce account.

I've read things about Apex class, but im not sure if this is required.
Basically I want to use built in REST endpoints of Salesforce from my external application written in Java to post data to the salesforce system.

Has anybody done that before and where can I find documentation about REST endpoints of salesforce.

Thanks,
Detlef
Amit Singh 1Amit Singh 1
Hello,

Correct me if I am wrong, You want to send data through java program to Salesforce into some standard or custom object. For this you need to expose Salesfoce REST API known as Apex REST for that object and the you need to hit the endpoint url for posting the data through java program. Refer below links for more information.

Sample end point for getting sigle Salesforce Account record is given below :

https://instance.salesforce.com/services/apexrest/Account/YOUR_ACCOUNTID_HERE

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_rest_code_sample_basic.htm
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm
https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_authentication.htm
Let me know if this helps :)
Thanks!
AMit Singh
Detlef BrendleDetlef Brendle
Hi Amit,
thanks for your answer.

I've seen, that Salesforce already ships with standard REST and SOAP API.
My use case is to insert/update/delete built in entities such as Account / Client
When dealing with basic one single entity for each request, can I use the built-in REST API to modify entities ?
Then I dont have to write an APEX Class.
I found this doku
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/using_resources_working_with_records.htm
or
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_quickstart_intro.htm