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
BenediktBenedikt 

User data available in trigger

I've a trigger fired 'on insert'. If two users are creating the same object: Is this trigger called twice (for each user) ore once with two objects in the trigger.new list?

Background: My trigger should do something, if the current user is a non-portal user. From time to time it doesn't. As I believe, objects created by portal- and non-portal-users at the same time are handled by the same trigger call. Which user is running the trigger in this case?
Swati GSwati G
Trigger will run once per user. So in this scenario trigger will run twice once for each user and it will run in different context.
BenediktBenedikt
Thank you very much! This helps.