How to call rest message from UI action
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 06:02 PM
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 06:14 PM
Yes, it is possible to call REST Message from a UI Action.
Using client side UI action -> Check the client check-box on UI Action and use GlideAjax for rest API call. get the response from Rest service and return it back to UI action. After getting response In Client UI action You can set the value by use g_form.setValue() function.
Using Server Side UI Action -> Uncheck the client check-box on UI Action, call the REST API from the script directly.