Transform map to avoid insert if record matches

Swati k1
Tera Contributor

Hi All,

during dataload , we want to ignore insert record if the same record already existing in table , which way can we ignore inserting record ?can we update reject in choice action or need to write transform script?

 

find_real_file.png

 

5 REPLIES 5

Musab Rasheed
Tera Sage
Tera Sage

Identify unique field and make ceolace as true that will do that job. In you case if unique field is u_file_id and this is not reference then make colace as true or else reject choice action has to be there in case if it is reference field. Give a try.

Please hit like and mark my response as correct if that helps
Regards,
Musab

ceolace field make new records will be get override on existing records if those matches.

We need to ignore if those record matches.. please suggest 

Hi,

You can use onBefore transform script and check operation. Use below logic:

  if (action == 'update') {
    ignore = true;
  }

 

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

To learn more you can check below course on developer portal.

https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/new_to_servicenow/app_store_le...

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande