how to consume rest api data in serviceportal what steps to follow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020 09:43 PM
Hi All,
i have a new api and its working fine and giving data in json format now i want to consume that rest api output in service portal widget.
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020 09:46 PM
use that rest api in server side of script on your widget.
you can refer the below lab session . it has mentioned the steps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020 09:47 PM
Hi
You can call that rest message in the Script Include and then return the response by calling that SI in the Server Script of that widget.
Hope this helps.
Regards
Omkar Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020 09:50 PM
Hi omkar,
Can i call that rest message directly in server script of widget and then assign output to any html control.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020 09:55 PM
your doubt will be clear if you will follow the link which i had provided you.
it has mentioned the example for one widget as well. Its complete creator-con 18 lab session about calling api in widget.
If my answer helped you, kindly mark it as correct and helpful.
If my answer helped you, kindly mark it as correct and helpful.