adding resolve button on service portal widget

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 03:48 AM
I was getting the below error when i was written the below code in the widget.can anyone help me with this issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 05:30 AM
Hello @Community Alums
Remove above 2 lines and in Line 8 directly give the name of table in brackets

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 05:34 AM
@Samaksh Wani Regarding table name ok but the what about the sys_id how should i pass sys_id value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 06:06 AM
Hello @Community Alums
Use this :-
$sp.getParameter("sys_id")
for sys_id, directly use it in brackets.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 05:55 AM
@Community Alums
check this link and do something similar for resolve
Reopen Incident Button on Service Portal from from Email Notification
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