Home
Salesforce Tutorial
_@ A Glance
_LWC Tutorial
Cook Book
_Aura Cookbook
_Batch Cookbook
_Trigger Cookbook
_Future Cookbook
Integration
Interview Related
_Typical Questions
_Interview Questions
_Topics at a Glance
Sitemap
Social Widget
Home
SFDC
Trigger (using Map) to display an error on Contact creation if the Account has more than 2 contacts
Trigger (using Map) to display an error on Contact creation if the Account has more than 2 contacts
Srijan Saurya
January 11, 2020
In this post we are going to write Trigger which we will show the error on Contact object if the contact for selected Account is more than 2. So it will restrict the user from creating contact if it is more than two. We will use Map function here.
SFDC
SFDC Classic
Trigger Cookbook
Reactions
Facebook
Twitter
Post a comment
0 Comments
Follow by Email
Get all latest content delivered straight to your inbox.
Facebook
Categories
Aura Cookbook
11
Batch Cookbook
3
Charts
2
Dashboards
3
Integration
6
Interview
3
JSON
5
Lightning component
12
Lightning Web Component
3
LWC Tutorial
3
SFDC
37
Trigger Cookbook
13
Visualforce Cookbook
3
0 Comments