+ 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!