OmniScript の「ファイル」コンポーネントでファイルをアップロードした後、ユーザーがそのファイルを削除できる標準機能があります。
1. コンポーネント画面上からのファイル削除
OmniScript の「ファイル」コンポーネントにてファイルをアップロードすると、コンポーネント内にアップロード済みのファイル一覧が表示されます。
表示されたファイル名の右側にある「ゴミ箱」アイコンをクリックしていただくことで、アップロードしたファイルを削除することが可能です。
2. 標準アクションの「削除」 要素を利用した削除
OmniScript 内で 標準アクションの「削除」 要素を使用し、データベース上のファイル本体(ContentDocument レコード)を直接削除する方法があります。
【設定のポイント】
1.「削除」 要素の設定画面にて「削除する sObject を追加」を選択します。
2.[sObject の種別] に ContentDocument を指定します。
3.[ID へのパス] に、削除対象となるファイル(ContentDocument)の ID が格納されている適切なデータパスを設定します。
詳細は、以下の公式ヘルプをご参照いただけますと幸いです。
参考 Help:OmniScript からのオブジェクトレコードの削除
https://help.salesforce.com/s/articleView?id=xcloud.os_delete_action_11946.htm&type=5
005466713

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.