You need to sign in to do that
Don't have an account?
Prakhyat sapra
related account & there related contact are not visible when the date is give in the postman using webservices????????????
i have created the connected app for integraction???
global static List<Account> getAccountWith(){
// List<ResponseWrapper> responseWrapperList = new List<ResponseWrapper>();
RestRequest accountRequest = restContext.request;
String accountRequestURI = accountRequest.requestURI;
Date accountLimit = Date.valueOf(accountRequestURI.substring(accountRequestURI.lastIndexOf('/')+1));
System.debug('accountLimit'+ accountLimit);
Date dt= accountLimit;
System.debug('dt'+dt);
Date myDate = date.newinstance(dt.year(), dt.month(), dt.day());
System.debug('myDate'+myDate);
List<Account> accountList =[SELECT id, name, CreatedDate FROM Account WHERE CreatedDate=:myDate];
System.debug('accountList'+ accountList);
return accountList;
}
here is my code......
global static List<Account> getAccountWith(){
// List<ResponseWrapper> responseWrapperList = new List<ResponseWrapper>();
RestRequest accountRequest = restContext.request;
String accountRequestURI = accountRequest.requestURI;
Date accountLimit = Date.valueOf(accountRequestURI.substring(accountRequestURI.lastIndexOf('/')+1));
System.debug('accountLimit'+ accountLimit);
Date dt= accountLimit;
System.debug('dt'+dt);
Date myDate = date.newinstance(dt.year(), dt.month(), dt.day());
System.debug('myDate'+myDate);
List<Account> accountList =[SELECT id, name, CreatedDate FROM Account WHERE CreatedDate=:myDate];
System.debug('accountList'+ accountList);
return accountList;
}
here is my code......