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 3022

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

0 votes

What is wrong with this trigger?

Whenever you do any bulk processing in your trigger, never perform DML or SOQL in for loop. … And you have forgot to wrap Id in quote: Your code should look like below: trigger NewEnrollee on Contact (after insert) { List<Enrollment_Process__c> enrollmentProcessList = New List<Enrollment_Process …
ashishcloud's user avatar
  • 1,050
0 votes
1 answer
2k views

can't assign convertedAccountId in lead after trigger for lead convert

I am trying to create one more contact for a lead which we convert and I wrote following code for this: public with sharing class LeadTriggerHandler extends TriggerHandler{ public LeadTriggerHan …
ashishcloud's user avatar
  • 1,050
0 votes

Getting variable doesn't exist error

So please run your trigger after update event. This will solve your problem. … trigger email on Contact (after update) { Messaging.SingleEmailMessage mail; List<Messaging.SingleEmailMessage> messages = new List<Messaging.SingleEmailMessage>(); for(Contact c : Trigger.new){ …
ashishcloud's user avatar
  • 1,050