Help to get Assessment sysid from server to pass it to client in Action type ESC to-dos page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2025 10:39 PM
Hello All,
I am working on one button (close with Survey) in ESC to-dos page. I am getting Assessment sysid in the server script and I want to use it(pass it) in the client side URL. This is being used in the Action type. Could you please assist.Below is the code I have used.
Note:If i pass the exact url of survey the page is redirecting and after submitting the survey,the ticket is getting closed.i want to do it in a dynamic way by passing assessment sysid.I tried using $scope and data aswell.
Server side:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 11:09 PM
please share your complete widget code
HTML, Client Controller, Widget
what's your business requirement exactly?
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
04-29-2025 12:25 AM - edited 04-29-2025 12:27 AM
It's not a Widget.The requirement is the "close with survey button" should open the survey quetions page and once user fills the survey and submit the incident should be automatically closed.
It is under to-do's page and for this the configuration is done in "sn_ex_sp_action_type" under to-do's configuration.
Below is the screenshot for your reference and the code is already shared above .This has only server script and Client script but no CSS and HTML like widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 12:45 AM
this link should help you -> try this {table.sys_id}
Custom sn_ex_sp_task_configuration
Also check any OOTB ones and how the sysId is passed
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