Following code should work. you can add filter criteria in SOQL with your choice.
//Get user
List<User> userlist = [select id from user limit 5];
for(User u : userlist)
{
u.isactive=false;
}
//update user list
if(userlist.size()>0)
update userlist;
Following code should work. you can add filter criteria in SOQL with your choice.
//Get user
List<User> userlist = [select id from user limit 5];
for(User u : userlist)
{
u.isactive=false;
}
//update user list
if(userlist.size()>0)
update userlist;
Most of the students struggling to do their dissertation by own. That is the reason they approaching the writing services to buy dissertation online (https://uk.answers.yahoo.com/question/index?qid=20110415075430AAOeiDl). The best dissertation writing service offers the best dissertation for the students. Each dissertation is written by professional writers. They are well qualified and have years of experience in this field.
I've query here, if the org has the sharing rules and Deactive users have owned records then how can we transfer the records anothoer user automatically without manual process(Mass transfer) a. Is there any tool that will help to transfer automatically and the records will share automatically without any effect.
Following code should work. you can add filter criteria in SOQL with your choice.
Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
All Answers
Following code should work. you can add filter criteria in SOQL with your choice.
Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
I've query here, if the org has the sharing rules and Deactive users have owned records then how can we transfer the records anothoer user automatically without manual process(Mass transfer) a. Is there any tool that will help to transfer automatically and the records will share automatically without any effect.
Thanks,
Sivasankar K.
Happy Diwali Status Quotes for Gf (https://happydiwalistatusmsg.blogspot.com/p/blog-page.html" target="_blank)
Funny Happy Diwali Status Quotes in Hindi (https://happydiwalistatusmsg.blogspot.com/p/funny-for-whatsapp-and-facebook-happy.html)
Diwali Status Quotes in Hindi Font (https://happydiwalistatusmsg.blogspot.com/p/2018-happy-diwali-imageshappy.html" target="_blank)
Funny Happy Diwali Status (https://happydiwalistatusmsg.blogspot.com/p/funny-happy-diwali-status-message.html" target="_blank)