Which database table stores the custom field values?
Written By
Pooja Bhambani
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
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- The user has created some custom fields like 'Role', and 'User Type' inside the user portlet.
- Which database table contains both user and custom field data together?
- Steps to follow:
1. Start Liferay DXP 7.2
2. Create a new user.
3. Add the value in the respective fields.
4. Create one custom field name 'Role' and provide the values as 'Engineer'.
5. Click on Save.
Resolution
- Custom field data i.e. Custom field name and its associated value are stored in the following tables:
1. EXPANDOCOLUMN
2. EXPANDOROW
3. EXPANDOTABLE
4. EXPANDOVALUE
- And, there is no table that stores both user and custom field data together. However, the ClassPk column in the 'EXPANDOROW' and 'EXPANDOVALUE' is the UserId of the User_ table. So, that user can easily identify the custom field value related to a specific user.
Did this article resolve your issue ?