- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 10:59 PM
How to update incident record using widget by user automatically , thats means user doesn't depend on servicenow developer
means its user manually type incident number , and its will take automatically take two filed values like short description , assigned to , user want to change the value on the basic of our needs??
please help this is urgent
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 02:17 AM
Hi @_Gaurav , this user want another things thats code not working in widget.
Please mark this as helpful if this resolves your query
Thank!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 12:40 AM
HI @_Gaurav , that's things i already know but how i will write this code thats my question buddy if you know please help me buddy thats urgent actually??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 12:45 AM
@1dusjhyahnt
Please share what things are done and what is left.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 12:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 12:59 AM - edited 02-08-2024 01:00 AM
@1dusjhyahnt Use this and let me know if further assistance is required
var grInc= new GlideRecord('incident');
grInc.addQuery('sys_id',input.sysid); //considering you are fetching the number or sys_id from the HTML side
grInc.query();
if(gr.next()){
grInc.description = input.description; // fetching the input in the description field from HTML
grInc.update()
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 01:42 AM
Hi @1dusjhyahnt
Please mark the answer as helpful if it resolves your query.
Thanks!