The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
42 views

Help me to Get Bulkifying trigger [duplicate]

My Trigger is here. Invoice is custom Object which have Look up relationship with Account. Help me with bulkifying this Trigger. trigger InvAmountUpdate on Invoice__c (After Update) { ...
1
vote
1answer
24 views

I need to write a bulkify trigger for this trigger how should i regret as bulkify for this?

trigger objAobjBnameaddedinobjC on Object_C__c (before insert) { for(Object_C__c c : trigger.new) { Object_A__c a; Object_B__c b; a = [select id, name, Type__c from Object_A__c where ...
1
vote
0answers
23 views

bulk and the MilestoneTriggerTimeCalculator interface

New from Spring '14 is the MilestoneTriggerTimeCalculator interface. (https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_interface_support_milestonetriggertimecalculator.htm) We use ...
0
votes
0answers
24 views

Bulkifying class so it will update multiple records

ive got some code ive created which i need to update multiple different records with a unique service_id__c, currently the way we do is through a query but we need a create its own class and it ...
4
votes
2answers
66 views

Will SFDC manufacture batches from concurrent operations?

So, like all SFDC developers worth his/her salt, I know when writing triggers and other code, we need to bulkify. And I have a pretty good handle on how to do that, so I am not asking about that. ...
0
votes
3answers
92 views

System.LimitException: Too Many SOQL Queries: 101 in Trigger

Following is my trigger I get the following error System.LimitException: Too Many SOQL Queries: 101 in Trigger Here is my trigger trigger SubscriberUpdateTrigger on Subscriber__c (after Insert, ...
0
votes
3answers
46 views

Bulkify code with Map

I'm still new to map Usage.. How could this code be bulkified? trigger OppyStatusCheck on Opportunity (before insert, before update) { for(Opportunity opp : Trigger.new) { ...
9
votes
2answers
1k 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
44 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
40 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
75 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
759 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
276 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
424 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
142 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
60 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
96 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
320 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 ...
3
votes
1answer
147 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
414 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
3answers
2k 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
210 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
520 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
176 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
142 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
196 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
769 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
571 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 ...