25
July

0 Comments | 0 Shares | Urdhva Tech | Tags: 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 This email address is being protected from spambots. You need JavaScript enabled to view it. for any services related to SugarCRM.
Download attachments:
Comments
  • No Comments Found.
Post your comment