- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2024 01:52 AM
I have a transform map as shown below
The data from the staging table has to be moved to various other tables in cmdb_ci.
For example, if the field value of "resource type" in staging table is 'Linux' then the data should be moved to dedicated linux table.
How is this possible? Kindly assist me with it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2024 03:35 AM
Hi @Nilofer
You can create multiple Transform maps to a single data source, in each Transform map you can script to ignore any row that is not needed for that target table
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2024 04:39 AM
for example if you are in Linux Transform Map:
if(source.resource_type == 'Windows')
ignore= 'true'
else if(source.resource_type == 'Linux')
write_your_logic
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2024 03:28 AM
Hi @Nilofer
Give a try on below link
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2024 03:35 AM
Hi @Nilofer
You can create multiple Transform maps to a single data source, in each Transform map you can script to ignore any row that is not needed for that target table
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2024 03:56 AM
Could you provide me a sample script for reference?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2024 04:39 AM
for example if you are in Linux Transform Map:
if(source.resource_type == 'Windows')
ignore= 'true'
else if(source.resource_type == 'Linux')
write_your_logic
Regards,
Piyush Sain