I'm writing a trigger on account to set a custom field
account.Data_Source__c = 'ERP';
for the accounts imported with the data loader from command line .
The problem is that my trigger works also for account created manually.
is there a way in apex to understand if you are getting data from the data loader?
I want that only the records imported have DataSource=Erp.
Thanks in advantage for any advice.