The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
38 views

Trigger to perform bulk operations - Associating Parent Child records

I have a trigger(after insert) that works for a single insertion and update and I'm converting it to perform bulk operations - My logic is as below - I have a shadow object (subs_shadow__c) - I get ...
6
votes
2answers
220 views

General trigger bulkification - best practices

A general question asked from time to time on stack exchange is question of trigger bulkification. Therefore I have 2 questions: Which best practices are you using? What is the best way to handle ...
0
votes
1answer
25 views

Bulkifying Code For a Callout

I have a trigger on EmailMessage. I have to get the subject of the case created from the email message. From the subject I am calling an APi to get the language and then updating it to the case ...
0
votes
1answer
34 views

Code Bulkification Problem

I have a requirement to bulkify the code. The trigger is present on Case Object and I have to take the CaseTeamTemplate Id's whose names match with the CaseTeamTemplate objects. I have written this ...
0
votes
2answers
38 views

If statement in trigger causes Too many SOQL Queries

I've got an Opportunity after insert trigger and utility class that creates a Contact, Opportunity Contact Role and Campaign Member (whilst checking to see if the email already exists in which case ...
0
votes
1answer
115 views

Trigger to update Child Records based on Parent Record

I am trying to update the status field of all the related child (Recipe Sheet Items) for a given parent (Recipe Sheet) when the status is updated to 'Void' and I am trying to make this trigger handle ...
2
votes
3answers
122 views

Bulkifying trigger to update lookup field using trigger

I have one trigger which is working exactly how i wanted it to be but the problem is it is not bulkified can somebody help with that Sales order is child object and Target_V2__c is parent, based on ...
1
vote
4answers
295 views

bulkifying trigger

I am trying to bulkify my trigger and looking for help looking for help. It works fine as it is for a single record but need to ensure it works in bulk, so need to bulkify it but not sure how. Also, ...
4
votes
2answers
84 views

Order of records in data load

I have a use case where I need to insert data in salesforce which is being exported from an external system. This data is split over multiple rows, and I need to get those multiple rows into the ...
1
vote
2answers
46 views

Is this a Bulkified trigger?

This is a Trigger working properly where it will fetch Logo__c[Rich Text Area] From Parent Object(Account) and put in Child Record(Contact) Logo__c[Again rich Text Area] trigger Pop_Img on Contact ...
0
votes
3answers
74 views

How do I Bulkify Trigger to populate Opportunity Picklists with Account Picklists

I'm working on a requirement as follows: Whenever an Opportunity is created or edited, its custom region picklists (Region__c) should be overwritten with the Account region picklists (Region__c). ...
9
votes
3answers
236 views

Bulkify on composite SOQL key

Assume I have a list of Objectx__c. Each instance of Objectx__c has a TEXT field SerializedData__c that contains two JSON values detailName and step. The requirement Using the detailName and ...
2
votes
1answer
111 views

Bulk API - Records in different parallel batches not visible in trigger

We're loading thousands of records into a custom object (Address__c) over the Bulk API, in parallel mode. It has a Master-Detail relationship with Contact There's a checkbox field on the object ...
4
votes
1answer
356 views

Bulkifying Apex trigger to handle large set of records updated via data loader

I wrote this trigger to per-form roll up operation on Child (Order line )to Parent (Order) Object related using Lookup field. Basically it sums up the currency amount of all order line records that ...
3
votes
2answers
1k views

Trying to create a trigger to prevent creation of duplicate accounts

This is the trigger i have wrote to prevent the creation of duplicate accounts, i am getting an error message saying "Intial term of field expression must be a concrete SObject:LIST ". Can someone ...
3
votes
2answers
153 views

Test already started: How to do big tests

I'd like to do a massive test. We've got a fairly complex operation that runs on any of 160,000 records, all of which have various scenarios as children and could be crappy data in some cases. I'd ...
0
votes
1answer
419 views

Making a Trigger Bulk Ready

I have a trigger that works just fine for single records and I am stumped how to make it work for multiple records. Any help would be appreciated. trigger TSSEducationUpdate on Education__c (after ...
3
votes
1answer
142 views

Governor limits in relation to System.setPassword

I can't seem to find how to bulkify System.setPassword(Id, String) method to set passwords for multiple users at once. Can it be done? If not, what governor limits I might potentially hit?
2
votes
2answers
130 views

EmailMessage trigger - does it ever happen in bulk?

I need to write some trigger logic under EmailMessage. Out of habit and good coding practice, I did it is "bulkified". However, an interesting thought came to me. Do I really need to make it run in ...
0
votes
2answers
163 views

How to realize bulk entry data for custom objects?

I want to do bulk entry for data in custom objects and wonder what would be the easiest way to do so. I have three objects, Timesheet (the main object), Type and Details. Every Timesheet has ...
5
votes
1answer
619 views

Submit records for approval in bulk without hitting DML Statement limit

I've got code to create and submit for approval a custom object. I'm running into the DML statement limit. As far as I can see each record I submit for approval takes up a DML statement, but there's ...
1
vote
2answers
542 views

Question on Bulkification/Governor Limit of Code

Is the code below ready to handle bulk changes? Is there a limit to how many Accounts I can be bulk updating with this trigger active? Trigger: trigger transferRelationshipTeamFromAcctOnAcctUpdate ...