Restrict data to import into servicenow tables from import sets
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 12:30 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 12:44 AM - edited 03-08-2024 12:47 AM
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
Regards
Harish
Harish
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 12:58 AM
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