Skip to content

Commit 128e4f1

Browse files
Create README.md
1 parent 74e184a commit 128e4f1

File tree

1 file changed

+17
-0
lines changed
  • Server-Side Components/Transform Map Scripts/Check if the Import file is valid

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
**Example use Case:**
2+
3+
Vendor data is periodically imported into ServiceNow via a scheduled data load (import set) sourced from an external application. These files contain only valid vendor records. After the import, any existing vendor records in ServiceNow that are not present in the latest file should be marked as inactive.
4+
5+
**Risk:**
6+
7+
If the incoming file is empty due to an issue in the source application, all existing vendor records in ServiceNow could be incorrectly marked as inactive, resulting in data loss or disruption.
8+
9+
**Solution:**
10+
11+
To prevent this, implement an "onStart" transform script that checks whether the import set contains any data before proceeding with the transformation. If it is found to be empty, the script should:
12+
13+
Abort the transformation process.
14+
15+
Automatically raise a ticket to the responsible team for investigation.(optional - not configured in this solution)
16+
17+
This ensures that the existing vendor data in ServiceNow remains unchanged until the issue is resolved.

0 commit comments

Comments
 (0)