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

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

Below are some screenshot which may help you get started:

find_real_file.png

find_real_file.png

Now within transform map select your Target Table where you want to upload data to and then click on Auto Map Field Map related link as shown below. This should define your field Maps if not then manually define it by clicking on New and then select Source and Target fields as shown below:

find_real_file.png

find_real_file.png

 

Once this is done, make sure to choose a coalesce as well to avoid duplicate record transformation within your field map.

Click on transform.

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

This is great - assuming I do not want to map the new values to an existing table, can I just create a new one with the 3 columns and then use the transfer map to this new table?

Yes you can create tables and can achieve the way mentioned above.

But one thing to note here is ServiceNow has license cost on creation of New tables and it differs from one customer account to another based on what subscription they have bought.

By default 25 tables are allowed which can be custom created in Global Scope. Please check once with your account manager and proceed.

If you are doing this in a Scoped Application then I don't think it check for Subscription.

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/subscription-management/reference/subscription-management-landing-page.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