Import Sets 2 Source Records to 1 Target Record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 06:48 AM - edited 10-09-2024 06:49 AM
Hello!
I'm trying to create or coalesce 2 source import set records to 1 target record.
I got a cool script to do this (see below), but my issue is that my source records do not have a common source Classification field.
Here's what I want to do:
Source Record | Target Record | |||
Facility | Classification | Facility | Classification Name | |
ABC | 1 | ABC | Low | |
ABC | 2 | |||
ABC | 3 | ABC | High | |
ABC | 4 | |||
XYZ | 1 | XYZ | Low | |
XYZ | 2 | |||
XYZ | 3 | XYZ | High | |
XYZ | 4 |
So, then I created a new column on the import set table called "Classification Name" and I'm trying with a "onBefore" Insert/Update business rule to update this new column to set the records with 1 and 2 Classification Name to "Low" for example.
The column gets set when I manually update the record, but not when I kick of the import (the business rule should kick off on import right?)
Here's my business rule script:
Here is the script (starting of it) that I'm using for my transform map. It's an onbefore transform map script and I'm not mapping any fields (just FYI):