- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2025 03:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2025 03:43 AM
Hi @sanyalshubh
A foreign record insert occurs when updating a reference field on a target table. If reference field doesn't exist then transform map creates new entry in reference table. This behaviour can be managed by 'Choice Action' field on field mapping record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2025 04:01 AM
@sanyalshubh
Yes, you can insert records into a foreign table in a Transform Map in ServiceNow using the onBefore or onAfter script in the transform map. This is similar to how you would handle foreign record insertion in SQL. The foreign table can be any table that isn’t the target table of the current Transform Map.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2025 03:43 AM
Hi @sanyalshubh
A foreign record insert occurs when updating a reference field on a target table. If reference field doesn't exist then transform map creates new entry in reference table. This behaviour can be managed by 'Choice Action' field on field mapping record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2025 04:01 AM
@sanyalshubh
Yes, you can insert records into a foreign table in a Transform Map in ServiceNow using the onBefore or onAfter script in the transform map. This is similar to how you would handle foreign record insertion in SQL. The foreign table can be any table that isn’t the target table of the current Transform Map.