Tuesday, January 12, 2016

[sugarcrm6.5] Reset selected users preference from ListView (for developer)

The second way for reset multil user:
You can create class or new action then you get ids of select users which you want to reset prefence.
You develop to loop through it and use following my code to reset:

$u = new User();
$u->retrieve();
$u->resetPreferences();

No comments: