Quantcast
Channel: Urdhva Tech | SugarCRM and SuiteCRM Customization and Development
Viewing all articles
Browse latest Browse all 66

Reset selected users preference from ListView

$
0
0
Greetings from Urdhva Tech!!!

How to reset preference for multiple users?

Simple, first of all add new action link in User's ListView.
How? Get reference from here Adding your own ListView action items

In your custom action you will get ids of selected users. Loop through it and use following code to reset the preference.

$oUser = new User();
$oUser->retrieve(<USERID>);
$oUser->resetPreferences();

Follow us on twitter: @Urdhvatech

Contact us at contact@urdhva-tech.com for any services related to SugarCRM.

Viewing all articles
Browse latest Browse all 66

Trending Articles