Welcome to the new Box Support website. Check out all the details here on what’s changed.

Search with Metadata not working

New post

Comments

4 comments

  • LoCortes

    Hello ,

    the URL you've shared, once decoded, is: https://api.box.com/2.0/search?mdfilters=[{"templateKey":"adaptPhase","scope":"enterprise_86433","filters":{"productType":+"case"}}]

     

    If we pretty-print that:

    [

      {
        "templateKey": "adaptPhase",
        "scope": "enterprise_86433",
        "filters": {
          "productType": + "case"
        }
      }
    ]

     

    I see here two things:

    1. there is a + there that shouldn't be here. Remove it and try again.
    2. In case that it is still not working try to add square brackets [] on the filters piece: "filters": [{"productType":"case"}]

     Let's see if this works for you 😉

     

    Regards,

    0
    Comment actions Permalink
  • vijeeshciber

    Thank you for your reply.

    0
    Comment actions Permalink
  • katrinaa

    Thanks for that great post!

     

    , did this solve your question? If so, give 'em props and tell the community by clicking the Accept Solution button beneath post!

     

    Thanks for your time in the community and appreciate your help!

    0
    Comment actions Permalink
  • vijeeshciber

    No. Actual issue with template key. I have changed my template key. Now my code is working fine with all type of metadata filters.

    0
    Comment actions Permalink

Please sign in to leave a comment.