Add Date Value to iSheet

27239

I'm trying to add a date value to a date field in an isheet.

I'm using the /3/isheet/{isheetid}/items/{itemid} REST API call, and am passing the iSheet column values in a payload object.

I am able to write to text fields, but I can't seem to write to date fields.  I checked the iSheet and the date field I'm trying to update is date only, with a MM/DD/YYYY date format.  In the payload, I'm populating:

{
  "recordcount": "1",
  "data": {
    "item": [
      {
        "itemid": "15962",
        "column": [
          {
            "rawdata": {
              "value": "01/01/2020",
              "date": "01/01/2020",
              "time": "00:00:00",
              "choices": null

            },
            "attributecolumnid": 9459
          }
       

      }
    ]
  }
}

Any idea what I'm doing wrong?

]]>
Parents
  • I tried your json and got a bad request. According to Swagger, the json I listed in my original post is correct, and it works to update text fields. It just doesn't work to update date fields.

    When I use:

    {
      "recordcount": "1",
      "data": {
        "item": [
          {
            "itemid": "15962",
            "column": [
              {
                "rawdata": {
                  "date": "01/01/2020"
                },
                "attributecolumnid": 9459
              },
              {
                "rawdata": {
                  "date": "12/31/2023"
                },
                "attributecolumnid": 9460
              }
           

          }
        ]
      }
    }

    I get a response code of 200 (success), but the dates do not appear in the fields. If I convert the columns to text, they appear.

    ]]>
Reply
  • I tried your json and got a bad request. According to Swagger, the json I listed in my original post is correct, and it works to update text fields. It just doesn't work to update date fields.

    When I use:

    {
      "recordcount": "1",
      "data": {
        "item": [
          {
            "itemid": "15962",
            "column": [
              {
                "rawdata": {
                  "date": "01/01/2020"
                },
                "attributecolumnid": 9459
              },
              {
                "rawdata": {
                  "date": "12/31/2023"
                },
                "attributecolumnid": 9460
              }
           

          }
        ]
      }
    }

    I get a response code of 200 (success), but the dates do not appear in the fields. If I convert the columns to text, they appear.

    ]]>
Children
No Data