legacy-knowledge-base
公開されました Jun. 30, 2025

オブジェクトエントリのインポートとエクスポート

written-by

Brian Suh

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • feature.flag.COMMERCE-8087=true.

環境

  • Liferay DXP 7.4+
  • Liferay 四半期リリース 2023.Q3+
  • Liferay Experience Cloud(LXC)とLiferay Experience Cloud - Self-Managed(LXC-SM)。

解像度

このセクションでは、(1) Object Definition を作成し、(2) Object Definition にデータ項目を追加し、(3) Object Definition をエクスポートし、(4) 既存の Object Definition を削除し、(5) 変更を加えて再作成し、(6) Object Definition をインポートし、(7) インポートが正常に完了したことを確認するシナリオについて説明します。 このシナリオでは、 Unable to adjust Mandatory status of the field after publishing the Object Definition(オブジェクト定義発行後、フィールドの必須ステータスを調整できない)という記事で指定されている問題を回避する方法を具体的に説明します。

1. Test という新しいオブジェクト定義を作成し、 Name という単一のテキストフィールドを必須とする。
2. Object Test 、5つのエントリーを追加する。
3. Product Menu > Applications > Import/Export Center に行く。
4. アイコンをクリックし、「ファイルのエクスポート」
5. Entity Type からオブジェクトを選択し(私の場合は C_Test (v1_0 - Liferay Object REST))、選択されているオブジェクトフィールドが希望の選択と一致していることを確認します。
6. エクスポートをクリックすると、ダウンロードボタンが付いたモーダルがポップアップ表示されます。 これをクリックすると、export.zip
7. export.zipを解凍し、 export.json ファイルの場所をメモしておく
8. 別のオブジェクトを削除または作成し、再作成する。
9. 前の Test オブジェクト定義と同じ方法で作成した後、Product Menu > Applications > Import/Export Center
10. アイコンをクリックし、ファイルのインポート
11. export.json ファイルピッカー
12. Entity Type を新しく作成した Test Object 定義から必須フィールドを除いたものを選択します(私の場合、 C_Test (v1_0 - Liferay Object REST)という名前でした)。
13. Destination Field と Source File Field を確認する
14. Next(次へ)」をクリックしてインポートを続行する。
15. インポート処理が完了したら、 Test Object 定義を確認する。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base