- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2025 08:26 AM
I have created ui page, ui action in "source-to-pay common architecture scope", but getting error page not found when I try to click ui action. Attach that error image.
HTML in UI page
=================================
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2025 08:55 AM
Hi @Ayushi Saxena ,
Try to create UI page in global scope and call it in your ui action.
Please mark my answer as helpful/resolved if it resolves your query.
Thanks,
krishnamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2025 08:43 AM
Hi @Ayushi Saxena ,
you have to use the Endpoint of the UI page without .do
example for case_creation form the endpoint is sn_hr_core_case_creation.do you have to use sn_hr_core_case_creation
update your UI action script with endpoint of the UI page without .do
function composeEmail() {
var dialog = new GlideDialogWindow('YOUR UI page"s Endopoint without .do'); //
dialog.setTitle('Compose Email');
dialog.setPreference('sys_id', g_form.getUniqueValue());
dialog.render();
}
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2025 08:55 AM
Hi @Ayushi Saxena ,
Try to create UI page in global scope and call it in your ui action.
Please mark my answer as helpful/resolved if it resolves your query.
Thanks,
krishnamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2025 09:47 AM
Hello @Ayushi Saxena ,
Slightly off-topic, may I ask why you need a custom UI Action for sending an email? You could just use the built-in email client feature.
If not present you can enable it for this particular table using these instructions.
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2025 09:56 AM - edited 05-25-2025 11:18 AM
Hi @Robert H,
Out-of-the-box (OOB) functionality in the Source to Pay scoped application restricts email communication when a Purchase Requisition (PR) is in any of the following states:
• Closed - Rejected
• Closed - Complete
• Closed - Canceled
• Pending Submission
To overcome this limitation, we are creating custom UI Action.