Thursday, 25 July 2013

Reset selected users preference from ListView

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.

No comments:

Post a Comment

Urdhva Tech Pvt. Ltd. Powered by Blogger.

Urdhva Tech

My Photo
SugarCRM Consultants Contact us at contact@urdhva-tech.com Skype : urdhvatech

Search This Blog

Loading...

Stay connected Socially

     

Total Pageviews

Popular Posts