We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Please help us how to add CI with the Display name by removing the asset tag

NagaNandini N
Tera Guru

Hi All,

 

Can someone help me how to add CI with the Display name by removing the asset tag. We have a existing business rule and tried modifying it but it doesnot work.

 

Please help me on this 

 

Condition : current.asset_tag.changes() || current.model.changes() || current.operation() == 'insert'
Script : 
updateDisplayName(current);

function updateDisplayName(current) {
    new AssetUtils().calculateDisplayName(current);
}
 
Changed one :

 

Condition : current.ci.changes() || current.model.changes() || current.operation() == 'insert'
Script : 
updateDisplayName(current);

function updateDisplayName(current) {
    new AssetUtils().calculateDisplayName(current);
}
 
Regards,
Naganandini N
0 REPLIES 0