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
Praetorian65Praetorian65 

Apex triggers - SForce UI or API

Is there any way in a trigger to determine if the object is being created/edited due to an API call as opposed to via the salesforce ui? I have some custom objects that I need to prevent any editing of via the salesforce UI.