incident short description updation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2018 09:10 PM
Hello All,
i need to update the incident short description like "incident number+ caller+ is updated this incident." using script include,
to achieve this functionality i wrote a script include like below, and i called that SI inside the Business rule but i dont know how to receive the data from script to business rule,
please help me.
Script include:
MyMethod:function(){
var details=new GlideRecord('incident');
details.addQuery('active',true);
details.addQuery('sys_id', current.SysID);
details.query();
while (details.next()){
return number+' '+ caller_id+ ' '+"is updated this incident.";
}
Business rule:
var dtls=new SIncludeBRcall().MyMethod();
Here i dont know how to update that data into short description.
Regards,
Venkat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2018 11:22 PM
Hi,
Write below code in Before BR ,
var user = g_form.getReference('caller_id').name;
current.short_description = current.number+' '+user+' '+'is updated this incident';