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
newbie@newnewbie@new 

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 ?
javed786javed786
Hi,

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

@Restresource(urlMapping='/usercreate/')
global class with sharing XYZ{
@HTTPOST
global static void sendResponse(){

 //Write your logic here 

//Prepare the response JSON.
 RestResponse res=RestContext.response;
res.addHeader('Content-Type','Application/json');
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