function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kunal@SalesforceKunal@Salesforce 

Mark as Favorites Field

Hi All,

I want to create a Favorites field for Opportunities object where a user can mark any opportunities as favorite and then view all his favorites by creating a new view called My Favorites. The favorites will be restricted across users. Please help to accomplish this feature. Do I need to create a field or can this be achieved by any alternate way? 

mtbclimbermtbclimber

This can only be a field on opportunity if this is restricted to something like "favorite opptys owned by me" otherwise presumably multiple users could flag the same opportunity as a favorite. In which case you would want to create a child object of opportunity that is a junction between opportunity and user. 

 

Another possibility would be to enable if not already and educate your users about personal tags.