ユーザーが特定のテーブルの添付ファイルを削除できないようにする方法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: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } この記事は、ユーザーが特定のテーブルの添付ファイルを削除できないようにするのに役立ちます (例:要求アイテム) 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: ; } } 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: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } レコードの [添付ファイルを管理] ポップアップは添付ファイルの UI ページであり、[削除] ボタンを削除すると、テーブル固有ではなくグローバルにボタンが削除されます。 ユーザーによるテーブルの添付ファイルの削除を制限するには、削除前のビジネスルールを追加します。 注:この方法では、ユーザーが「削除」ボタンをクリックすると、添付ファイルがUIの動作とともに消えることを許可しています。ただし、レコードを再ロードすると、添付ファイルが表示されます。 (ビジネスルール操作によってアクションが中止されたため、サーバー側で添付ファイルが削除されなかったため) 以下の例では、削除前ビジネスルールにより、アドミン以外のユーザーが「sc_req_item」テーブルの添付ファイルの削除を中止することが制限されています。名前:RITM での添付ファイルの削除制限テーブル:sys_attachment詳細:チェック時期:前削除:チェック フィルター条件:テーブル名がsc_req_itemである スクリプトの条件: (function executeRule(current, previous /*null when async*/) { // Add your code hereif(!gs.hasRole('admin')){ current.setAbortAction(true); }})(current, previous); Related Links<!-- /*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: ; } } このビジネスルールは、主にsys_attachmentテーブルのレコードの削除を防ぐために機能します。タスクの再ロード時に、添付ファイルが 0 バイトの添付ファイルで再表示される場合。これは、ファイルの base64 データが sys_attachment_doc テーブルから削除され、空のファイルを含む添付ファイル リンクが壊れたためです。 この問題を解決するには、次の両方のテーブルに一致する「削除前時点 (on before delete)」ビジネスルールを追加します。sys_attachmentsys_attachment_doc