Call UI Page from UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2025 11:43 PM
Hello Experts,
I have scoped application Recipe Management, in the same scoped application I have created custom table recipe management histories which will create the line item in table if cost price is update for any recipe tagging the recipe name and updated date/time.
Below is my UI Page code which open the attached window when I use try it option on UI Page. But when I try to call same from UI action then UI action does not work.
UI Page code:
Name: view_cost_dialog
Code:
UI Action:
Name: View Cost
Action Name: view_cost
Code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2025 11:57 PM
when you call that UI page give the complete name including the scope prefix etc but don't include .do
var dialog = new GlideDialogWindow('view_cost_dialog'); // no ".do"
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 12:55 AM
Hi Ankur,
Thank you for the response.
As suggested I added below end point url in UI action as below but still UI action is not working
UI Action code below:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 08:18 PM
then some error coming in UI page
Try checking the browser console error.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader