Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to resolve the Database.Delete salesforce Error?

Asked by Buffy Heaton Jun 1, 2023 1.5K views 1 answer
Share

About this question

List c = [SELECT ID FROM Contact WHERE AccountId !='00190000016ozwL']; System.debug(c.size()); Database.SaveResult[] srList = Database.delete(c, false);
This is the anonymous apex that I am trying to execute.

I am getting the following error while executing.

Illegal assignment from LIST to LIST

Not sure why am I getting this error because "c" is a collection only. Can you let me know ?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.