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

Integration with SAP

Can anyone help me in integration
 I m new to it.. My requirements is that User will hit on Salesforce system from sap  to create user From sap to Salesforce 
We need to provide him Json and endpoint url. How to achieve this ?

your end point is 
your org instence url /service/apexrest/usercreate

global class with sharing XYZ{
global static void sendResponse(){

 //Write your logic here 

//Prepare the response JSON.
 RestResponse res=RestContext.response;
res.responseBody('{"StatusCode":"200","Status":"xyz" }');   //Prepaire your json here what you needs to send back.



No need to return the response its take care bu restresponse. thank you