Questions tagged [bulkification]
The practice of structuring code to handle processing multiple records in one transaction. It should scale from processing a single record to hundreds (or more).
249 questions
0 votes
1 answer
124 views
How does flow bulkification work for invocable Apex?
My question is exactly similar to the one here I have a record-triggered flow with async path. I do a Prompt action for case record and receive a JSON string as response. I pass this string response ...
0 votes
0 answers
49 views
Is it possible to access records created in another record-triggered flow batch from invocable apex action
There is a record-triggered flow that is launched when A records are created. A collection of B records is created in the flow. After that, I will call the invocable apex action in the flow. Inside ...
1 vote
0 answers
144 views
Graph api and Flow Triggers
I'm really new to SalesForce api and processes. My requirement is to update a custom object in SF 'customObject'. The records are logically grouped with a field 'fieldGroup'. After create/update of a ...
0 votes
1 answer
58 views
How to create a Map in apex to effectively bring soql outside loop for 2 objects manipulation
I have 2 objects , Account (look up to Acc landing) and Account Landing. Account landing has a field called accountid, which I need to update if the account has a acc landing associated to it. My ...
2 votes
1 answer
126 views
How does `EventBus.TriggerContextsetResumeCheckpoint()` work?
I'm currently looking at the "Apply Best Practices for Writing Platform Event Triggers" Trailhead where EventBus.TriggerContext.setResumeCheckpoint() is apparently used to set "...
0 votes
1 answer
104 views
Apex Bulkification Issue
I have an SObject variable in which I'm adding the field api names and the values respectively as it acts as a Map and later adding it to a List<SObject> variable. The below code works as ...
2 votes
1 answer
870 views
How Salesforce executes a flow on a record triggered plus subflow vs only record triggered
I was wondering if someone here could help me have a bit more clarity over a behavior I'm seeing when executing flows in SF. I need to call a subflow from a record-triggered flow to execute some ...
0 votes
2 answers
69 views
Not sure if code is perfectly written for bulkification inside invocable method
I have been reading a lot of bulkifying code inside of the invocable methods both here at stack exchange and outside. More reading has led to a lot of confusion and still not sure if I have done it ...
1 vote
1 answer
551 views
Flow Bulkification with respect to duplicate Update Records on the same parent record
I'm designing a flow to roll up values to a parent record, and although I've reviewed the documentation here on bulkification, there is a piece that I haven't quite figured out. The flow will run upon ...
0 votes
1 answer
813 views
Inserting List of ContentVersions and ContentDocumentLinks at the same time
I'm looping through a list of records, creating content versions, adding to a list of content versions and then inserting the list of content versions. I then need to create a content document link to ...
0 votes
2 answers
103 views
If a user can access only the salesforce UI, will there be multiple transaction for that user?
Please correct me if I am wrong. Somewhere I read an article that each account has their own separate transaction. Also, I don't think that customers will be using Developer Console to update or ...
0 votes
1 answer
626 views
Do I need to Bulkify a DML inside a loop followed by end in Flows
I have a flow that only fires once per case record when an email-to-case comes in. It finds the email alias the case came through and assigned some values to the case record. I'm assessing a flow that ...
-1 votes
1 answer
129 views
Independent Bulkification vs Batched Processing
I have been acquiring quite a bit of information about how bulkification and batch record processing works in salesforce (bits and pieces - salesforce documentation does not seem exhaustive). While I ...
3 votes
1 answer
914 views
Salesforce Bulkification Across Transactions
Here is a fun question I have been puzzling over. So, I have been learning a lot lately about salesforce bulkification and governor limits, specifically as they relate to bulk upload of data into ...
-1 votes
1 answer
41 views
doubts about Bulkify code for trigger for notes creating based on user and status of case object
this is the first time writing the trigger and there are two for loops I am using. where after one for loop again I used the next for loop. so while doing bulkify update is there any error that will ...