Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

how to restrict incident creation from calendar invites for DL

RudhraKAM
Tera Guru

As of now we are creating an Incidents via Inbound action , but when there is a calendar invite , still it is creating Incident , How to restrict that ?

 

I am not able to restrict subject , as it can be any 

 

RudhraKAM_0-1764942196011.png

 

45 REPLIES 45

pratyusha11
Tera Contributor
if (elidProperty) {
    // Process comma-separated values exactly like the recipient script
    var ids = elidProperty.split(',').map(function(id) {
        return id.trim();
    }).join(',');

    var userGR = new GlideRecord('sys_user');
    var qc = userGR.addQuery('u_elid', 'IN', ids);
    qc.addOrCondition('user_name', 'IN', ids);
    
    userGR.query();
    if (userGR.next()) {
        username = userGR.name.toString();
    }
}