スコープ指定の送信 REST メッセージの呼び出し中にエラーが発生しましたIssue <!-- /*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: #7057C7; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } <!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> 別のスコープで送信 REST メッセージにアクセスする必要がある場合。アクセス可能であると仮定すると、次のエラーが発生する場合があります。 REST Msg Outbound - RESTMessageClient : Error constructing REST Message/Method: xxxxxxxxxxx [HR Task] HTTP Method (POST): com.glide.generators.InvalidGlideRecordException: Unable to find REST Message Record with Name: xxxxxxxxxxx: com.glide.rest.outbound.RESTMessageDAO.getRestMessageRecord(RESTMessageDAO.java:86)com.glide.rest.outbound.RESTMessageDAO.<init>(RESTMessageDAO.java:71)com.glide.rest.outbound.RESTMessageDAO.newInstance(RESTMessageDAO.java:67)com.glide.rest.outbound.RESTMessageConfig.initNew(RESTMessageConfig.java:67)com.glide.rest.outbound.RESTMessageClient.<init>(RESTMessageClient.java:57)[...]java.lang.Thread.run(Thread.java:748)Evaluator: com.glide.communications.ProcessingException: Error constructing REST Message/Method:xxxxxxxxxxxr [HR Task] HTTP Method (POST)Caused by error in script at line 1513: gs.print(gr.function_name);14: gs.print(gr.rest_message.name);==> 15: var sm = new sn_ws.RESTMessageV2(gr.rest_message.name, gr.function_name);16: 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: #7057C7; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } Cause<!-- /*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: #7057C7; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } スコープ対象のリソースを呼び出すには、そのスコープ内にない場合にスコープを明示的に指定する必要があります。 Resolution<!-- /*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: #7057C7; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } ビジネスルールまたはスクリプトインクルード内から呼び出そうとしている送信 REST メッセージが別のスコープ内にあります。しかし、それはまだアクセス可能です。REST メッセージ名の先頭にスコープ名を付ける必要があります。これは、以下の関数の最初の引数を参照しています。 RESTMessageV2(String name, String methodName) したがって、送信 REST の名前がわかっている場合は、次のようにプレフィックスを追加するだけで済みます。 SCOPE = 'my_scope' REST Message= 'my_rest' 関数呼び出しは次のようになります。 var msg = new sn_ws.RESTMessageV2('my_scope.my_rest', 'function_name'); This solution applies even if the REST name is a variable e.g. : スコープ = 'my_scope' REST Message= gr.rest_name var msg = new sn_ws.RESTMessageV2('my_scope.'+gr.rest_name, 'function_name');