Wednesday, February 19, 2014

How To Reset New Password in Salesforce Using Apex

3) How To Reset New Password in Salesforce Using Apex.

Ans:

L
List<user> u= new list<user>();
list<id> ids= new list<id>();
string test='test';
u=database.query['select id,name from user where name=:'test'];
for (user usr: u)
{
System.resetpassword(user.id,true);
}

ListL

No comments:

Post a Comment