How to retrieve values from another table?

Aeden Frost
Tera Contributor

Hello all,

I am trying to write a script that receives the stock on hand within a stockroom and puts it in a custom table for stocktaking purposes, however, I can't figure out how to make the value different for different assets.

 

I want to receive the individual asset data from a stockroom table and populate the field on a custom table containing the asset information

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

MrMuhammad
Giga Sage

Hi,

You can use GlideRecord API to extract information from one table and put it into the another table.

Please refer GlideRecord Article

Regards,

Muhammad

Regards,
Muhammad

View solution in original post

3 REPLIES 3

MrMuhammad
Giga Sage

Hi,

You can use GlideRecord API to extract information from one table and put it into the another table.

Please refer GlideRecord Article

Regards,

Muhammad

Regards,
Muhammad

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

So what script did you start with and where are you stuck?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

I was using the GlideRecord API but I wasn't sure how to retrieve the individual asset information for the various assets in the stockroom.