• Pankaj_Kumar_Pandey
  • NEWBIE
  • 5 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
give me the example of above scenario please give some ideas.

My Webservice Code how can i modify my code.

 

webservice static ResponseClass Method2(String accName)
{

ResponseClass res1 = new ResponseClass();
List<Account> del = [ Select ID, Name from Account where Name = :accName];
if(del.size() > 0)
{
res1.errorMessage = 'Account not  exists!';
return res1;
}

delete del;

}

Hi, 

 

I written test class and coverage is 91%, i am trying to see while lines are not covered but not able to see developer console. 

 

is it salesforce bug or  i missed something

 

Thanks ,

siva.