You need to sign in to do that
Don't have an account?
newbie@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 ?
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
@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