
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-19-2020 04:47 AM
Hello experts,
I've setup an ETL throught IntegrationHub and I'm wondering how I can ignore records with specific attributes.
The support documentation proposes this script, slightly enhanced to match our requirement (in yellow). However, it doesn't work:
(function(batch, output) { for (var i = 0; i < batch.length; i++) { var in0 = gs.nil(batch[i].input) ? '' : batch[i].input; output[i] = in0 + " modified by scriptā;
//do not import if the value of the field attribute = 'ABC'
if (batch[i].attribute = 'ABC')
batch[i].ignore = true
} } })(batch, output);
How could I achieve this ? Is there any additional supporting documentation in regards to scripting within the IntegrationHub ?
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-19-2020 08:56 AM
Thank you Andrew for the proposal. Unfortunately it didn't resolve the issue.
In fact, we managed it without using any script, which is good. In fact there is a condition builder which supports our requirement:
- Click the button Edit Class
- In our case, we want to exclude records were both LNX and @@@ vendor_monitor are set (value is not LNX and value is not @@@)
- As the else condition remains empty, the class is not set.
Here is the screenshot:
Even if we found the solution, I would still be interested to know more about the methods available in the batch and output variables, and especially on how to ignore a record by script. If anyone has a proposal, please write it here.
Best regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-23-2021 09:14 AM
1. I'm wondering why the computer CI wouldn't be in the CMDB.
2. In your data, is there a way to determine if the computer is in the CMDB or not ?
3. If not, I would suggest managing it through a "on Before insert" business rule on the Disk table: if there is no CI related to the disk, then abort the operation. Unfortunately, I'm don't see other option in the IntegrationHub ETL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-23-2021 09:29 AM
Yes, we have a ID, with that we can glide in table and check what's the class

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-10-2022 02:43 AM
Hi Taniya,
Is your issue resolved ? Should it be the case, could you please close it (mark as correct)? Otherwise, please explain where you are stuck.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-10-2022 11:22 PM