Questions tagged [transaction]
The transaction tag has no summary.
89 questions
3 votes
1 answer
94 views
Is it possible to have multiple separate transactions in one testmethod
I'm wondering if there is a way to get multiple transactions (with different contexts as far as static variables are concerned) within one test. I have a Trigger handler class where there is some ...
0 votes
0 answers
97 views
Invoke Record Triggered Flow From Apex
I have a requirement where: Whenever a case record is updated so that Boolean__c = true && source__c = email - An async path will call a prompt, take certain actions like (trigger email ...
0 votes
0 answers
24 views
Disable or throw error if one user clicked on "Assign To Me" button for rest all Users
I have a aura component which shows list of Task with button inside dataTable. Now, If two users click on "Assign To Me" at the same time, I want to handle it using error. First user should ...
1 vote
2 answers
1k views
Platform Events a nightmare - How to make them work in real life
I am trying to build a Platform Event-based application logger where arbitrary application code calls Tracker.log(...); and this is sent as an Event into an external database via an API. As it's ...
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 ...
3 votes
1 answer
2k views
The need of database.savepoint vs not using try catch at all
This has been something that has been really bugging me. What is the need of using using a database.setsavepoint along with try catch when you can just do without it? With try catch and savepoint. ...
1 vote
1 answer
448 views
Can later runs of a flow see records inserted in an earlier run of the same flow interview?
I am running into a strange problem with a flow that has lead me to wonder if I am not understanding how flow interviews work on bulk inserts and I am not able to find any documentation that answers ...
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 vote
0 answers
571 views
Salesforce Flow Pause Element error
I have a salesforce flow that is an invoked flow from a button click on a list. After clicking the button, I send the ID of the parent record to the flow, and get all the child records with a get ...
1 vote
0 answers
144 views
Before-Save Flow in separate transaction from Apex + after-save Flow?
I expected before-save Flow + Apex triggers + after-save Flow to be a single transaction. However, when set Debug Logs, I get two entries. One contains my contact before-save Flow, then a second ...
1 vote
1 answer
126 views
Too many DML statements 151 inside while loop
I am receiving this error on Update DML inside while loop I have marked the error line in code Code public class LeadFuture_TradingAccUpdate { @future(callout=true) public static void ...
0 votes
1 answer
1k views
How transaction creation happens with multiple record triggered flows for the same object?
After searching and searching I get more in doubt on how the transaction works in salesforce. I want to believe that if I have one big record-triggered flow it will be run in the transaction of a ...
4 votes
1 answer
2k views
Is sfdx force:source:deploy a transactional command? Could it be?
I'm looking for a transactional deployment command, that will roll back the entire metadata movement in case of an error. Deploying by using an artifact with sfdx force:mdapi:deploy --zipfile ... is a ...
0 votes
1 answer
741 views
UpdateAsync(sobject) Method to update records in a (spawn) new transaction
The documentation says that data on the external system. Asynchronous operation is used to process\update these records Query Does this mean I can update Sobjects (custom and\or standard) using this ...
0 votes
1 answer
162 views
How is transaction defined and how is Governor limit applied in Salesforce SDK?
I am creating an app with iOS using Salesforce SDK. How is transaction defined, and how is governor limit applied in this context? For example, I have an a.swift file where I am throwing API requests ...