Restrict data to import into servicenow tables from import sets

bhanu27
Tera Expert

Hi All 

 

I want to restrict new data to import from import sets to table but already existing data if any  can be updated using the importset how can we do that, please suggest me.

 

Thanks in advance.

Bhanu.

2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

Hi @bhanu27 you can add the below script in your transform map to abort the insert

  if (action == "insert") {
        ignore = true;
    }
also you can set Coalesce to true for a field which is unique to avoid insert

HarishKM_1-1709887413520.png

 

 

Regards
Harish

shikhatyagi
Kilo Sage

Hi @bhanu27 

 

Create On Before transform map script with below code.

 

if (action == 'insert')
      ignore = true;
 
Please mark this comment as Correct Answer/Helpful if it helped you.
 
Regards,
Shikha Tyagi