Friday, September 2, 2016

How to attach attachements to incident

--- Write BR on 

Table : Sys_Attachment.

updateRecordForAttachment();
function updateRecordForAttachment(){
 var gr = new GlideRecord(current.table_name);
if(gr.get(current.table_sys_id)){
  gr.work_notes = "Attachment: " +current.file_name + " has been attached.";
  gr.update();
}
}
How to implement Change risk calculation in SN

Change Risk Assessment

 Activated the Plug in
2     Created Risk Assessment  
3     Under this Assessment – Created all the questions and choice list values for Impact and       Probability from the excel sheet.
4      Created four BR’s :
Ø  Calculate Impact from Risk Assessment  on Change Request table
Ø  Calculate Risk from Impact and Probability – Change Request
Ø  Update change request from risk assessment – Survey Response
Ø  Calculate Probability from Risk Assessment – Change Request
5   When a new Change is created and submitted, Fill out survey link is activated and users can fill out those choices for impact and Probability.
6   Those responses are stored in Survey Response table and based upon that response Impact, Risk and Probability are calculated. Calculation is done as per the excel sheet
Field Created : Probability
8    Used already existing fields Risk & Impact 
BMC remedy with SNOW Integration.

http://wiki.servicenow.com/index.php?title=Legacy:Remedy_Integration#gsc.tab=0

https://docs.bmc.com/docs/display/public/ars9000/BMC+Remedy+AR+System+REST+API+overview

https://docs.servicenow.com/integrate/outbound_rest/concept/c_OutboundRESTWebService.html

https://docs.bmc.com/docs/display/public/ars9000/Configuring+the+REST+API