Search Results
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 |
A trigger is a feature of the Salesforce platform consisting of Apex code that executes before or after DML operations.
1
vote
Accepted
How to update parent object in trigger without risking recursive update loops
You've to check the value of variable before entering the trigger. And after the trigger has updated the record, you can set that variable. … It will cause the trigger to run only once for one DML operation. …
2
votes
System.LimitException: Too many SOQL queries: 101 Stack Trace: Trigger.TAFieldUpdate: line 4...
Your query is inside for loop, that's why limit exception is occurring in your code. Take a list outside for loop, fetch query result in it and then loop over that list.
Also, your update statement is …
1
vote
Create A Variable Number of Children Records
If I've understood your requirement correctly then this might be the solution you are looking for,
trigger CreateChild on Parent__c (after insert) {
// Child record list to insert
List<Child_ …
5
votes
MIXED_DML_OPERATION, DML operation on setup object is not permitted
The trigger is firing because of DML on User object, and you are trying to insert Contact record in the same context. That's why you are getting this error. …
2
votes
How to handle trigger recursion
It besically suggests to use static variable to determine if we have to execute the trigger or not. …