How to make 3rd party api connection, get the response and update fields in a widget on ServiceNow ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 02:46 AM - edited 02-01-2024 02:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 04:49 AM
Can you elaborate? If you are showing the incidents through the widget, you can also show those fields, so if they are filled on the form, why fill them through client controller/server script?
Or those this information needs to be retrieved while logging a new incident (so the API is called on creation)?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 05:05 AM
Here are the details for you to help me further
On the Service Portal, there is a page that has a widget. This widget has few fields. What is want to do is make API call when the page (that has this widget) is loaded, get the response, parse it and map few values on the fields in the widget. This widget is on incident table.
I understand RESTMessageV2 API method, My question is how to combine/write client controller and server script on the portal widget to achieve above requirement ?