Creating a Custom Table

Wasdom_Kung
Tera Guru

Hello,

I have been provided 30 thousand plus choice options that need to be selected by end-users. The information provided is effectively a table with 3 columns.

 

Tray ID, Tray type and Tray name.

Each Tray ID is associated with a type and name.

 

The plan is to populate presumably a table which will then be referenced by a field on the required SC portal item. My question is what is the best way to go around importing all of these values (Manually would take forever!).

I have created a new table with the columns Tray ID, Tray type and Tray name but can't seem to work out how to get these columns to work together or how to import the thousands of choice values.

 

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi,

In order to import them please make use of Transform Map functionality in ServiceNow.

Below are steps:

1) Navigate to the module "Load Data" and then click on Create New table which will create a staging table for you. Once done upload your spreadsheet.

2) once uploaded, click on Create Transform Map and define your field Mappings as required.

3) Click on Transform

Refer to link below:

https://docs.servicenow.com/bundle/rome-platform-administration/page/script/server-scripting/concept/c_CreatingNewTransformMaps.html

https://docs.servicenow.com/bundle/rome-platform-administration/page/script/server-scripting/task/t_CreateATransformMap.html

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

7 REPLIES 7

Thanks - I've managed to create a table using the import and data transform, and have created another table which was used as the destination for the staged data.

 

The only thing I seem to be missing are the rows of data from the spreadsheet that was imported, they don't appear to have been populated into the columns, any ideas?

1. Transform
find_real_file.png

2. Table destination

find_real_file.png

3. Example of unpopulated column

find_real_file.png

You need to navigate to your Table to view the data populated. Type in your Table name and then do as below:

TABLENAME.LIST and hit enter in Application Navigator to see what has been transformed.

find_real_file.png

Let me know if you are faicng an issue here.

 

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

From the source table u_nhsl_tray_codes I seem to have the correct number of entries

find_real_file.png