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.
Objects does not support exporting and importing relationships. All other object elements and configurations are supported (e.g., scope, fields, layouts, actions).
Exporting Definitions
Open the Global Menu (
), go to the Control Panel tab, and click Objects.
Click the Actions button (
) for the desired object and select Export as JSON.
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
Open the Global Menu (
), go to the Control Panel tab, and click Objects.
Click the Actions button (
) in the Application Bar and select Import Object.
Enter a name for the new object and select the JSON file you want to import.
importantObject names must be unique and use PascalCase.
Click Import.
The object definition imports in the background and can take a few minutes.