legacy-knowledge-base
公開されました Sep. 10, 2025

"Custom Field" data for Navigation Menu is not included, while fetching it from 'Navigation Menus Headless API'

written-by

Kartik Singh

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

Issue

  • When trying to fetch the details of the "Navigation Menus" via the 'getNavigationMenu' Headless API, the 'Custom Field' data is not included in it.
  • Steps to reproduce:
    1. Navigate to Control Panel > Configuration > Custom Fields > 'Site Navigation Menu Item' > Create a field using the text field.
    2. Navigate to Site Builder > Navigation Menu > click on the '+' button > select 'Page' (any page) and fill in the 'Custom Field' value which appears on the right side and saves it.
    3. Open the new browser's tab, hit the 'localhost:8080/o/api' > NavigationMenu > GET /v1.0/navigation-menus//{navigationMenuId} > enter the 'navigationMenuId' (it can be seen from the URL like 'siteNavigationMenuId=34026')
    4. Click on the 'Execute' button, after that, in the 'Response Body', all details are available except 'Custom Field'.

Observed behavior: After fetching the data from getNavigationMenu API, the 'Custom Fields' data is not visible.
Expected behavior: After fetching the data from getNavigationMenu API, the 'Custom Fields' should be visible.

Environment

  • Liferay DXP 7.4 
  • Liferay DXP 2023.Q3
  • Liferay DXP 2023.Q4
  • Liferay DXP 2024.Q1
  • Liferay DXP 2024.Q2

Resolution

  • The observed behavior is a known bug that has been addressed by: LPD-31167.
    • Based on the LPD-31167, this fix will be included in the upcoming patches of the 2024.Q2 release.

Additional Information

  • If a hotfix is required or any more information on this, please create a support ticket requesting a hotfix by attaching patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install this hotfix in the respective environment.
did-this-article-resolve-your-issue

legacy-knowledge-base