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
me0wsterme0wster 

Differentiate between a API or a Edit from the page

I have a trigger which executes after an update.  Is there a way to tell a difference between an API update or a update from the Case page in the trigger?

 

Cheers,

Timothy

LosintikfosLosintikfos
API Update is an update via the web service interface. Example can be an update from your site to salesforce via salesforce WSDL interface.
me0wsterme0wster

Yes.  I want to differenciate between an update from the webservice and an update done by a user via the UI.  Can this be differenciated by a trigger? 

 

I do not want the trigger to be executed if the request comes from the webservice.

 

Cheers,

Timothy

LosintikfosLosintikfos
You dont need any trigger when updating via web service interface.