You need to sign in to do that
Don't have an account?
Manj_SFDC
Need help on parsing response from URL mapping
Hello everyone, I am using this in my REST class
List <Account> accountList;
try {
accountList = [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account];
return accountList;
}
in the RESTHandler I am getting the response as lsit of accounts with associated contacts , I need the count of number of accounts in the response, can someone help
List <Account> accountList;
try {
accountList = [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account];
return accountList;
}
in the RESTHandler I am getting the response as lsit of accounts with associated contacts , I need the count of number of accounts in the response, can someone help
All Answers
Now update your code as