Forum Discussion

Joel Rodrigues's avatar
Oct 18, 2017
Solved

REST API bug when retrieving managed metadata list field configured to allow single values?

Hi everyone,   Any suggestion on this problem would be much appreciated. I'm trying to load all the items from a list that contains some managed metadata fields using the REST api. The API return...
  • Andrew Koltyakov's avatar
    Oct 18, 2017

    Hi Joel,

     

    This is a well-known issue since 2013.

    Single-valued MMD columns just can be retrieved as desired with OData, with Multi-valued MMD columns it is much better.

     

    But there is a workaround. There is a possibility of getting single-valued MMD columns' values while items request if do it with `getItemsByCAMLQuery` list's method. It's a part of REST API, is an implementation for backward compatibility. The downside of the approach is that OData configurators like ($select, $filter, $expand and so on) can't be used together with OData.

     

    --

    Regards,

    Andrew

Resources