2022-08-14から1日間の記事一覧
■ サンプル var incidentGR = new GlideRecord('incident');incidentGR.addQuery('priority', 1);incidentGR.query();while(incidentGR.next()){ gs.debug(incidentGR.number + '/' + incidentGR.priority);} Service Now GlideRecored priorityは 設定値は…
■Service Now GlideRecord insert コードサンプル var incidentGR = new GlideRecord('incident');incidentGR.query();incidentGR.newRecord();incidentGR.short_description = 'TEST 123';incidentGR.insert(); Service Now Scripts Backgroundでの実行結果…
Service NowのAPI サーバー側で動作 データベース操作 クエリー作成、レコード操作のシーケンスで動作する サンプル var incidentGR = new GlideRecord('incident');incidentGR.addQuery('priority', 1);incidentGR.query();while(incidentGR.next()){ gs.de…