UI Page Issue - How to access the data returned in Client Script in the Processing Script portion o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 08:20 AM
I have a UI Action on a Security Incident Form. The UI Action calls a UI Page. In the Client Script portion of the UI Page, we call a script include that does a REST Call. We want to access the results of the REST Call in the Processing Script portion of the UI Page. How would we be able to reference the results in the Processing Script that are returned from the Script Include in the Client Script?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 10:15 AM
To access the REST call results from a Script Include in the Processing Script of your UI Page, here's a simple approach:
Script Include: Make sure the Script Include does the REST call and returns the result.
Client Script (UI Page): Use GlideAjax to call the Script Include, get the REST call result, and pass it to the Processing Script.
Processing Script: Receive the result from the Client Script and use it in your Processing Script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 02:08 PM
Thanks for your response. So my question is how do I reference the fields in my Processing Script.
So for example here is the Client Script:
