you can catch the import using userevent script like below
var newRecord = context.newRecord; var origin=newRecord.getValue({ fieldId: 'originator' }); if (origin == 'CSV' && context.type =='create')