- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 06:33 AM
Hi, Everybody
I am stuck in transform table ,bez i have data there has mixed up data like incident ,change ,probleb so i stuck in transform i.e while i have all these record then target table name is what could you plz suggect the table name .
then easily map in all 3 table field.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 08:05 AM
Since you need to transform data from one staging table to multiple tables incident, problem and change. I suggest creating multiple transform maps on your Data source. Inside your transform script, you can filter the record on the basis of your filter criteria and transform the records on the respective tables.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 08:05 AM
Since you need to transform data from one staging table to multiple tables incident, problem and change. I suggest creating multiple transform maps on your Data source. Inside your transform script, you can filter the record on the basis of your filter criteria and transform the records on the respective tables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 08:41 AM
Hi
Thankyou for wonder response.
But there has option mention only not target table so that little confuse.so will you elabrote its plz.
EXTERNAL NUMBER | Short description | Description | Caller | Type | Configuration Item | ISSUE DATE |
INC00001 | Issue with Printer | Bluevoyant printer is not working | System administrator | Incident | ServiceNow | 11June 2023 |
CHG00001 | Router conf | Modify the router configuration to meet the system and network requirement. | System administrator | Change | ServiceNow | 23 June 2023 |
PRB00001 | Network reset is needed | Due to the network reset issue, we need to change the modem | System administrator | Problem | ServiceNow | 2 Aug 2023 |

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 09:23 AM
@angel kumari I am assuming you have created a data source to import your data from an external source (API/Excel sheet/CSV) to your staging table.
I am also assuming that the table structure you have shared is of your staging table. Here the Type field can be used to segregate data for Incident, Change and problem tables.
In your data source, you will be having three different transform map, where source would be your staging table and target would be either Incident, problem or change.
Let's assume you are writing your first transform map for incident table.
Here is the configuration for the transform map onBefore script.
In the above script, we are simply checking if the type on the source field is incident, if the condition evaluates to true then we set the ignore action to false otherwise true. This makes the script to run only for those records where type is incident.
Similar transform maps can be created for change and problem records and similar onBefore script for change and problem types can also be put.
For more information on Transform map, I recommend you reading the official documentation here.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 11:15 AM
hi
i use the same script in my robust transform.4
3
2
1