Urgent - When applying metadata to file i am getting invalid Request contains invalid parameters

新規投稿

コメント

3件のコメント

  • Rui Barbosa

    Hi QA,

    I suspect there might be a typo on the attribute key name.

    List all templates or just the one your using and check the key value for your recorddateclosed attribute. It might not be what you expect.

    For example using postman:

    https://{{api.box.com}}/2.0/metadata_templates/enterprise

    I get:

    {
    "id": "548d9254-c7f7-4c34-8898-c9ec1294f705",
    "type": "metadata_template",
    "templateKey": "customerData",
    "scope": "enterprise_877840855",
    "displayName": "Customer data",
    "hidden": false,
    "copyInstanceOnItemCopy": false,

    "fields": [
    {
    "id": "ef2c0822-c134-4221-b40c-3bfb14a59c96",
    "type": "string",
    "key": "customerName",
    "displayName": "Customer Name",
    "hidden": false
    },

    However on the template administration console:

    The attribute name, which is the display name is not the same as the key name.

    Let me know if this helps.

    0
    コメントアクション パーマリンク
  • qa

    Hi,

    An Thank You for the response, i am entering the correct key and the value is string .

    this is how i  am adding the value into the metadata that is new Dictionary<string, object>();

                                         var omri = "omri";
                                        var obj =(object) new {omri};
                                        metadataValues.Add(item.Key.ToLower(),obj);

     

    What do you think ?

    0
    コメントアクション パーマリンク
  • Julius Mello Mebe

    I have been experiencing the same thing for as long as I can remember and tried million ways to circumvent that problem but still could get anywhere. Did you manage to get that solved qa?

    0
    コメントアクション パーマリンク

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