Hi Kiran,

I wrote same logic on RITM table but its not working , I can clearly see the file is falling in RITM table , but I am not able to understand why this attachment is coping to data source . Below is the code that my BR has

 

Table : RITM 

When : After Insert 

Script :

 

(function executeRule(current, previous /*null when async*/) {

var dataSourceSysId = 'c52aee08db03130094649b81ca961974';
var schImp_GR = new GlideRecord('scheduled_import_set');
schImp_GR.addQuery('data_source',dataSourceSysId);
schImp_GR.query();
if(schImp_GR.next()){
gs.executeNow(schImp_GR);
// use this if it is in scoped app
//SncTriggerSynchronizer.executeNow(schImp_GR);
// if in non-scope app i.e. global// the above 2 lines will start the import process, etc automatically
}

})(current, previous);

 

Can you please suggest me with correct process , If I am doing wrong.

 

Thanks for knowledge sharing,

Dinesh