Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    are you getting data at site collection level or at subsite level ? Commented May 4, 2018 at 15:29
  • 1
    For a POST you need to include the authorization. Commented May 4, 2018 at 15:30
  • @GautamSheth at sub site.. the managed metadata column itself is defined inside the site collection, while the list i am querying LookupList is at the subsite level. Commented May 4, 2018 at 23:14
  • @Rothrock so can you advice how i need to specify the header? based on my knowledge to specify the header i need the username and password.. and i am not going to expose those values (mainly the password) inside the javascript... or the authorization will be the same as the current login user ? Commented May 4, 2018 at 23:18
  • There are two ways to get the header. One is to make a POST call (this POST doesn't need a valid digest to work.) to <site>_api/contextinfo and get FormDigestValue from that. The other is to read it from the page (I use jQuery) $("#__REQUESTDIGEST").val(). Either way you then include "X-RequestDigest":whatever-the-value in your post headers. Commented May 8, 2018 at 14:59