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
ipl bcciipl bcci 

Apex Class  to send Data from Salesforce to External system.

When any Case Object is Closed Send All the Case details  to External System.

And I want to store the respone in the Salesforce Object


 Can anyone help me with any Example that will fit into this requirement
(All needs to be done within the Apex Class  that accepts number of records also  I need to Map Case Fields with External Fields).
Thank you in advance.

PriyaPriya (Salesforce Developers) 

Hi ,


You may require to have a look on Creating REST APIs using Apex REST below is the link for the same.

https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST

The Force.com REST API lets you use a simple and lightweight API to access Force.com data, using standard OAuth, together with a choice of data flavors – XML and JSON. The REST API is configured out of the box to suit the basic CRUD (create, read, update and delete) operations of data management.

Apex REST augments this functionality and makes it possible for developers to create your own REST-based web services using Apex. It has all of the advantages of the REST architecture, provides the ability to define custom logic and includes automatic argument/object mapping.

This article provides an introduction and overview of the Apex REST functionality, showing you how to take your first steps in creating REST-based web services in Apex. As Apex REST builds on the Force.com REST implementation itself,
the Getting Started with the Force.com REST API article is recommended reading.
Here is a link 
https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_REST_API

Don't forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help.

Thanks & Regards,

Priya Ranjan

ipl bcciipl bcci
Any Smaple Code similar to this requirement