
8 件の回答
+1 here are the steps to do this: 1) Create custom rollup summary field
Setup->Customize->Accounts->Fields
Create a new custom field
Choose roll up summary as the field type
Give the field a name
Choose to summarize the Opportunities object and Count as the roll up type2) Create Opportunity Validation Rule
Setup->Customize->Opportunities->Validation Rule
Create a new rule
Give the rule a nameUse this formula:
Account.Count_of_Opptys__c > 1
Enter the error message your users would see
Test it out!