Exporting and Importing Object Definitions

Exporting and Importing Object Definitions

Available Liferay 7.4 U5+/GA9+

You can import and export object definitions as .json files. This makes it easy to migrate objects between Liferay environments.

important

Objects does not support exporting and importing relationships. All other object elements and configurations are supported (e.g., scope, fields, layouts, actions).

Exporting Definitions

  1. Open the Global Menu (Global Menu), go to the Control Panel tab, and click Objects.

  2. Click the Actions button (Action Button) for the desired object and select Export as JSON.

    Click the Actions button for the desired object and select Export as JSON.

  3. Click Save in the dialog window to download the object definition as a JSON file.

Once exported, you can import the object definition into compatible Liferay environments.

Importing Definitions

  1. Open the Global Menu (Global Menu), go to the Control Panel tab, and click Objects.

  2. Click the Actions button (Actions Button) in the Application Bar and select Import Object.

    Click the Actions button in the Application Bar and select Import Object.

  3. Enter a name for the new object and select the JSON file you want to import.

    important

    Object names must be unique and use PascalCase.

    Enter a name and select the desired JSON file.

  4. Click Import.

The object definition imports in the background and can take a few minutes.

Additional Information