retrieving all company assets through rest api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 04:14 PM
Hi
Can I retrieve all assets assigned to a company through rest API. What would the query look like?
Also how many OOB hardware model category values are there in asset table?
Or do I have to create all model categories for computers, servers, all the components of a computer like disks, RAM, NICs, Power supply etc?
Are there CMDB tables for the components of computer?
Thank you
-Deepali
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 11:43 PM
Hi Deepali,
if you are referring to alm_asset table there is company field there; you can apply GET Method and get all assets for that company
GET: https://instanceName.service-now.com/api/now/table/alm_asset?sysparm_query=company.name=ACME China
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
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
04-15-2020 12:16 AM
Hi
Yes, Thanks, that confirms my understanding about rest call. Can you answer my other questions also please? Basically I want to how I can store the components like of Dimm, hard disks, Nics etc of a system into assets and cmdb tables.
Thanks again