Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 33921

A trigger is a feature of the Salesforce platform consisting of Apex code that executes before or after DML operations.

2 votes

Error: Maximum trigger Depth

It looks like you are having an issue with Recursive Triggers, usually when you have the Maximum Trigger Depth error that means that the trigger is getting recursively fired. …
cmmoutes13's user avatar
  • 1,057
1 vote
2 answers
335 views

Rollup Summary Trigger Error: Invalid field xxxx for SObject Contact

I have an Apex Trigger that is performing a Rollup from a custom object pse_Assignment__c to Contact. Below is the trigger that I have written and the error that I am receiving. … Code: trigger RollupActiveAssigmentLevelsToContact on pse__Assignment__c (after insert, after update, after delete) { set<Id> set_id = new set<Id>(); List<Contact> con_list = new List<Contact>(); if …
cmmoutes13's user avatar
  • 1,057
0 votes
1 answer
58 views

Need help making changes to my RollUp Summary Trigger

I have created a Rollup Summary Trigger that will display a count of Assignments__c on the parent Contact page layout. … Below is the current Apex Class followed by the Apex Trigger that I am using. …
cmmoutes13's user avatar
  • 1,057
1 vote
Accepted

Account - Display fields on the Object's layout based on particular values

You will want to create record types for these different options. With record types you will be able to assign specific page layouts to each of your record types and select which fields should appear …
cmmoutes13's user avatar
  • 1,057
3 votes
3 answers
417 views

Rollup Summary Trigger Help

I am trying to create an Apex Trigger that performs a Rollup from a custom object to Contacts. … Below is the code: trigger RollupActiveAssigmentLevelsToContact on pse__Assignment__c (after insert, after update, after delete) { set<Id> set_id = new set<Id>(); List<Contact> con_list …
cmmoutes13's user avatar
  • 1,057
1 vote
1 answer
3k views

Apex Trigger for Adding Contacts to Campaigns as Campaign Members

I am writing an Apex Trigger that will take the Primary_Contact__c from an Opportunity that has been Closed Won and the Amount != Null and add that Contact to a Campaign called Closed Won. … trigger UpdateClosedWonMembers on Opportunity (before update) { List<CampaignMember> members = new List<CampaignMember>(); for (Opportunity opp : Trigger.new) { if (opp.StageName == 'Closed Won' & …
cmmoutes13's user avatar
  • 1,057
3 votes
1 answer
5k views

Apex Trigger to create Opportunity Contact Role based on Contact Lookup field

I have created the following Apex trigger that will create, update and delete Opportunity Contact Roles based on a Contact Lookup field placed on the Opportunity. Everything works great currently. … Thanks, trigger CreateContactRole on Opportunity (after insert, after update) { List<OpportunityContactRole> newContactRoleList = new List<OpportunityContactRole>(); List<OpportunityContactRole> oldContactRoleList …
cmmoutes13's user avatar
  • 1,057
1 vote

How to create a record automatically when a checkbox is set to true in an object

This looks like a job for the Process Builder! Take some time to check out the following links to learn a little bit more about the Process Builder and how to use it! Intro to Process Builder (Video) …
cmmoutes13's user avatar
  • 1,057