Pull the user data from REST API
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 09:40 AM
i want pull the third-party tool asset data from the REST API and update into servicenow (alm_hardware)Asset table
how can i do
Labels:
- Labels:
-
Asset Management
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 09:49 AM
Hi @Royal1 ,
Hope you are doing great.
To pull asset data from a third-party tool's REST API and update it into the ServiceNow ALM_Hardware table, you can follow these steps:
- Identify the REST API endpoint of the third-party tool that provides the asset data you require.
- Create a new REST message in ServiceNow to establish a connection with the third-party tool's API. Provide the necessary details such as the endpoint URL, request method (e.g., GET), headers, and authentication credentials if required.
- Define the appropriate REST transform map in ServiceNow to map the fields from the API response to the corresponding fields in the ALM_Hardware table. This ensures that the data is correctly transformed and updated.
- Schedule a script or create a script include to automate the data retrieval and update process. This script should invoke the REST message and handle the API response.
- Within the script, process the API response, parse the data, and map it to the fields in the ALM_Hardware table using the defined REST transform map.
- Use GlideRecord operations to insert or update the asset data into the ALM_Hardware table. Ensure that you handle any errors or exceptions that may occur during the data update process.
- Set up a scheduled job or a background script to run the script at the desired intervals, so that the asset data is regularly pulled and updated in ServiceNow.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 12:22 PM
This was very helpful. Thank you @Riya Verma !