Skip to content

Instantly share code, notes, and snippets.

View BlagodarovVA's full-sized avatar
🎯
Focusing

Valery B. BlagodarovVA

🎯
Focusing
View GitHub Profile
@setap
setap / gist:9831487
Created March 28, 2014 12:22
HP Service Manager. How to unlock a record
function unlock(resource)
{
var rteReturnValue = new SCDatum();
var rteNames = new SCDatum();
rteNames.push("name");
var rteValues = new SCDatum();
rteValues.setType(8);
rteValues=system.functions.insert(rteValues, 0, 1, resource);