Bonds
Bonds store the data necessary to link your ServiceNow record to an external system.
Functions
Manually Closing a Bond
(function executeRule(current, previous /*null when async*/) {
var bond;
bond = new GlideRecord('x_snd_eb_bond');
bond.addQuery('document', '=', current.sys_id);
bond.addQuery('state', '!=', 'Closed');
bond.query();
while (bond.next()) {
bond.state = 'Closed';
bond.update();
}
})(current, previous);References
Internal reference
External reference
State Control
State
Description
Message Control
Message Scripts
Health
Status
Description
Ownership
Cleanup
Automatic Cleanup
Manual Cleanup
Name
Table
Cascade Delete
Debugging

Activity logs
Business rule: <Your Trigger Business Rule>
Last updated
Was this helpful?
