I am creating a rest Service and its integrated with external system and sending data to external system through lightning component and its working fine while sending the data from Salesforce. while sending data to external system, it will redirect to external system.
In the same way, I need to get the data from external system to Salesforce through hook page. While sending data from external system, it needs to redirect to salesforce page where I was tried to send data from salesforce.
My apex rest service
@RestResource(urlmapping='/test/test/HookPage.aspx/*')
global without sharing class test{
@HttpPost
global static String doPost()
{
RestRequest req=RestContext.request;
RestResponse res=RestContext.response;
Blob body = req.requestBody;
Map<String,String> params = RestContext.request.params;
return null ;
}
}
this my hook page but i want to redirect to salesforce record detail page
please anybody help on this