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
abcd1234abcd1234 

Single product to an opportunity

How to restrict user to add a single product to an opportunity?

Best Answer chosen by Admin (Salesforce Developers) 
Steve :-/Steve :-/

Create a Rollup Summary field on the Opportunity object that COUNTS the number of Product objects attached to the Opportunity, then add a VR that throws an error if your RS Field > 1

All Answers

Steve :-/Steve :-/

Create a Rollup Summary field on the Opportunity object that COUNTS the number of Product objects attached to the Opportunity, then add a VR that throws an error if your RS Field > 1

This was selected as the best answer
abcd1234abcd1234

Thank you so much..

Steve :-/Steve :-/

No problem, you owe me a beer 

http://beeradvocate.com/beer/profile/863/7971