Forum Discussion

Andrew Schutzman's avatar
Andrew Schutzman
Copper Contributor
Sep 13, 2017
Solved

REST Endpoint "_api/navigation/menustate" not returning custom properties.

Documentation (https://msdn.microsoft.com/en-us/library/office/dn600183.aspx#bk_MenuState) states that "customProperties" should be queried using a comma separated value string.     I have tried ev...
  • Jeroen Mostert's avatar
    Oct 24, 2017

    I had the same issue (I used 'image' as the property name and a URL as the value) and seem to have found a (weird) solution:

    Through google I somehow found an indexed link on a public site which used the API and the 'customProperties' parameter and when I tried it, it actually returned the XML without errors and the specified customProperties showed up as well.
    However I noticed that the property names that were used, all started with '_nav_'.

    Once I experimented a bit it turned out that if I used property names starting with either 'nav_' or '_nav_' in both the term store and the query string parameter, I no longer got any errors and the customProperties showed up in the returned XML.

    I'm very curious if you experience similar behaviour.

Resources