サービスカタログ API の REST を介した変数セット変数の入力Summary<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } この記事では、サービスカタログ API の REST 呼び出しを介して変数セット変数を設定する方法について説明します。 Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Instructions<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } 1.以下を含むカタログアイテムを作成します。1 行テキスト変数 (slt)、1 つの 1 行テキスト (Slt2) と1 つの 1 行テキスト (slt3) を含む 1 つの複数行の変数セット (mrvs) JSON 要求オブジェクトの形式は次のようになります:{"sys_id" : "039c516237b1300054b6a3549dbe5dfc","sysparm_quantity" : "1","variables" : {"slt" : "slt_value","slt2" : "slt2_value""mrvs" : "[{\"slt3\" : \"slt3_value\"}]"}} 単一行の変数セットの場合、変数セットのinternal_nameについて言及する必要はありません。ただし、「mvrs」の場合、その名前を言及する必要があり、値は JSON オブジェクトの配列である必要があります。 参照としての変数が次のように設定されている場合、REST を使用するときには次のように値を設定します。ここで、ee329ce2dbb033002878dc965e96196c は参照フィールド値のsys_idです。 "slvset1Qref" : "ee329ce2dbb033002878dc965e96196c" (参照フィールドには sys_id を使用する必要があります)。