Widget Redirecting to 404 Instead of Survey Form in GRC Project
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2025 07:06 AM - edited ‎05-14-2025 07:09 AM
Hi all,
I've created a custom assessment and survey widget as part of a GRC (Governance, Risk, and Compliance) project. The widget is designed to display all related survey records.
However, I'm encountering an issue:
When I click to open a record from the widget, I get a 404 error.
I tried modifying the URL from "ticket" to "form", and I was able to access the Survey Form.
On that form, there's a "Take Assessment" button. When I click it, I get a pop-up saying "Record Updated".
URL:
sp?id=ticket&table=asmt_assessment_instance&sys_id=4abe95fe9755a25014427666f053af11
sp?id=form&table=asmt_assessment_instance&sys_id=4abe95fe9755a25014427666f053af11
My Requirement:
When a user clicks on a survey record from the widget, it should redirect directly to the Survey Form, not a 404 page.
Questions:
Is there a proper way to construct the URL or use navigation APIs to ensure redirection to the correct survey form?
Has anyone faced a similar issue in a custom widget?
I have attached some screenshots.
Any suggestions, best practices, or guidance would be much appreciated.
Thanks in advance!
Ashok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2025 03:43 AM
Hello @Ashok_Bandla , did you check page route map table where you will find a record of assessment if its active true, Please deactivete and test the result again. no need to construct a URL.
Please refer the support article, https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0855288
Thanks,
Kalpesh