Hi @ankita choudhary I think you can do it but for this you have to customize a little bit . step 1: Create a RestResources for getCall for whatever object you want for this .
@RestResource(urlMapping='/Case/*')
global with sharing class MyRestResource {
@HttpGet
global static List<Case> doGet() {
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
String listcaseId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);
List<String> listcase= listcaseId.split(',');
Account result = [SELECT Id, Name FROM Case WHERE Id IN :listcase ];
return result;
}
}
Step 2 : Whenever you calling rest call for this salesforce object append list of Id with comma separated for(String cid : listcid){ StringCaseId = StringCaseId +',' + cid; } url = 'https://instance.salesforce.com/services/apexrest/Case/'+StringCaseId ;
I think you can do it but for this you have to customize a little bit .
step 1: Create a RestResources for getCall for whatever object you want for this .
Step 2 : Whenever you calling rest call for this salesforce object append list of Id with comma separated
for(String cid : listcid){
StringCaseId = StringCaseId +',' + cid;
}
url = 'https://instance.salesforce.com/services/apexrest/Case/'+StringCaseId ;
than you can use this url to put in get call .