User Tools

Site Tools


inbound_actions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

inbound_actions [01/22/2025 08:19] – created johnsonjohninbound_actions [12/31/2025 05:41] (current) – removed johnsonjohn
Line 1: Line 1:
-======Inbound Actions====== 
----- 
- 
-=====BCA PC===== 
-<code> 
-(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) { 
- 
- // Implement email action here 
-  
- var subject = email.subject; 
- var workstation = subject.replace('ALERT: Node ','').replace(' is Down','').trim(); 
-  
- var gr = new GlideRecord('cmdb_ci'); 
-    gr.addQuery('name', workstation); 
-    gr.query(); 
-     
-    if (gr.hasNext()) { 
- while (gr.next()) { 
- current.cmdb_ci = gr.sys_id; 
- } 
-    } 
-  
- current.update(); 
-  
-})(current, event, email, logger, classifier); 
-</code> 
----- 
  
inbound_actions.1737562781.txt.gz · Last modified: by johnsonjohn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki