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
viktorVviktorV 

Decide, whether action is performed by API

Hi,

 

I'd like decide in a trigger, if the current action (insert, update, etc) is performed by using force.com api or by the normal web gui.

 

Thank you,

Viktor

Best Answer chosen by Admin (Salesforce Developers) 
Ritesh AswaneyRitesh Aswaney

Salesforce does not discriminate the source of the update, so unless you use a specific user for your API insert / update, it would be hard to tell.

All Answers

Ritesh AswaneyRitesh Aswaney

Salesforce does not discriminate the source of the update, so unless you use a specific user for your API insert / update, it would be hard to tell.

This was selected as the best answer
viktorVviktorV

Thank you Ritesh!