function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
Please find the solution.
List<Contact> contactData=new List<Contact>([select id,accountId from Contact where accountid !=null limit 1000]); List<Account> accountList=new List<Account>([select id,Name from Account where Name='abc']); List<Contact> contactUpdate=new List<Contact>(); for(Contact con:contactData){ if(con.accountId==accountList[0].id){ Contact conn=new Contact(); conn.id=con.id; conn.accountId=null; contactUpdate.add(conn); } } update contactUpdate;
Please mark it as the best answer so that other people would take reference from it.
Thank You
Hi,
Please find the solution.
Please mark it as the best answer so that other people would take reference from it.
Thank You