function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alberto EmpauaAlberto Empaua 

How to reproduce the standard menuItems attribute of forceCommunity:navigationMenuBase in apex

I want to reproduce the standard attribute "menuItems" in the forceCommunity:navigationMenuBase in apex. I need to get this in order to send it to another Web via WS.
I tried with the NavigationMenuItem but I can't know what is part of a submenu and what is a main menu and how to relacionate it.

So any ideas?