Salesforce TRIGGER SCENARIOS
a. Write a trigger on Account, when an account is inserted,
automatically account billing address should populate into the
account shipping address.
b. Write a trigger on create the account with the same name i.e
Preventing the users to create Duplicate Accounts.
c. Write a trigger on if the current user profile is system admin then
only the user can insert the record
d. Write a trigger on prevent account from deletion if account
having contact more than 2 contacts
e. Write a trigger on prevent account from deletion if account
having contacts write a trigger
f. Write a trigger on opportunity if stage is closed own then u
cannot update that update
g. Write a trigger on Prevent account from deletion if account
having parent account.
h. When ever a case is created with origin as email then set status
as new and Priority as Medium.
a. Write a trigger on Account, when an account is inserted,
automatically account billing address should populate into the
account shipping address.
b. Write a trigger on create the account with the same name i.e
Preventing the users to create Duplicate Accounts.
c. Write a trigger on if the current user profile is system admin then
only the user can insert the record
d. Write a trigger on prevent account from deletion if account
having contact more than 2 contacts
e. Write a trigger on prevent account from deletion if account
having contacts write a trigger
f. Write a trigger on opportunity if stage is closed own then u
cannot update that update
g. Write a trigger on Prevent account from deletion if account
having parent account.
h. When ever a case is created with origin as email then set status
as new and Priority as Medium.