function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sumant KuchipudiSumant Kuchipudi 

Bulk upsert api not calling trigger

Hi,
I have a trigger on an object that compares the new values with the existing and send email if new value comes for each record. When I tested with simeple UPSERT record it worked and whem I tested with an integration that calls upser bulk api, the trigger didn't invoke. Triggerns won't triggern on bulk api requests?
NagendraNagendra (Salesforce Developers) 
Hi Sumant,

Sorry for this issue you are facing.

Triggers and Workflows will fire irrespective of the API you are using. Form the link that you have shared please go to the section:

Triggers:

Although the flexibility of triggers is a great asset, triggers can cause many kinds of problems in your loads and integrations. Locks are one of those problems. When you’re loading records that fire one or more triggers, and any of those triggers performs either a select for update or a DML operation on records other than the record that you’re inserting, updating, or deleting, Salesforce locks those other records.

For more information please refer to below link with a similar discussion. Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra