Search with Metadata not working

新規投稿

コメント

4件のコメント

  • 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
    コメントアクション パーマリンク
  • vijeeshciber

    Thank you for your reply.

    0
    コメントアクション パーマリンク
  • 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
    コメントアクション パーマリンク
  • 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
    コメントアクション パーマリンク

サインインしてコメントを残してください。