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

can we write upsert statement in a Trigger?

Denis VakulishinDenis Vakulishin
But be careful if you upserting the same type sObjects. it could cause infinite loop.
could you expand clearly
Denis VakulishinDenis Vakulishin
 check this.

Also when your're updating objects of the sma type as trigger, you can go in recursion
Check this workaround. (