- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2022 10:38 PM
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
Solved! Go to Solution.
- Labels:
-
Script Debugger
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2022 10:56 PM
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
Muhammad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2022 10:56 PM
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
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2022 11:02 PM
Hi,
So what script did you start with and where are you stuck?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2022 01:22 AM
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.