How to call rest message from UI action

mjocasio23
Tera Expert

is it possible to call a Rest message from a UI Action?

1 REPLY 1

Gowrisankar Sat
Tera Guru

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.