Workflow内でCatalog Itemの値(例えばTitle)をRequest Item(のshort_description)に入れたいときにすること

Workflowのrun scriptで 以下のように設定

var grcri = new GlideRecord("sc_req_item");
grcri.addQuery("sys_id", current.sys_id);
grcri.query();
if (grcri.next()) {
grcri.short_description = current.variables.short_description.toString(); // short_description
grcri.update();
}

最初は
current.short_description = current.variables.short_description; 
としていたが、
  1. gliderecordとして記録すること
  2. 基本的にデータは最後にtoString()をかませること
が必要だった。
Next Post Previous Post
No Comment
Add Comment
comment url