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
PranavLAXPranavLAX 

Salesforce Integration using REST API with an external application

Hi,

 

We are looking to  create a record (Asset) as an appliance in an external system from Salesforce.

 

This would get triggered when a button is clicked upon on the Asset object

 

Can you please guide to some code samples that use REST APIs to connect to external systems and insert records in it and in return fetch a value which is created in the external system.

 

 

Requests:


Action |HTTP Method| URL|
Create | POST | http://xyz.com/sfapi/appliance/
Read GET http://rxyz.com/sfapi/appliance/:id
Update PUT http://xyz.com/sfapi/appliance/:id
Delete DELETE http://rmc.com/sfapi/appliance/:id

 

 

Best Answer chosen by Admin (Salesforce Developers) 
Pat PattersonPat Patterson

Check out tutorial 4 of the Force.com Integration workbook http://wiki.developerforce.com/page/Force.com_workbook#Force.com_Integration_Workbook - it shows how to send a message to an external service and write the response into a record in Force.com.

All Answers

Pat PattersonPat Patterson

Check out tutorial 4 of the Force.com Integration workbook http://wiki.developerforce.com/page/Force.com_workbook#Force.com_Integration_Workbook - it shows how to send a message to an external service and write the response into a record in Force.com.

This was selected as the best answer
PranavLAXPranavLAX

Thank you very much Pat!

 

Appreciate the help.

 

I believe we will also be able to create a record in the external application using this.

 

Just have to add that logic of inserting a record from Salesforce into it using the JSON.

 

Thanks,

 

 

farukh sk hdfarukh sk hd
Hope this will help you.

Rest api to create a record from one salesforce system to another salesforce system,

https://www.sfdc-lightning.com/2019/01/salesforce-rest-api-integration-to-create-a-record.html
D VelD Vel
Thanks Farukh for sharing this. Can you please provide any samples for integrating Salesforce with D365 Finance and Operations