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
  • Chuck Rothman, the JSON in your post looks more like the output JSON from the GET (/api/{version}/isheet/{isheetid}/items/{itemid}) method.

    For the PUT, the payload JSON should look something more like this:

    {
      "data": {
        "item": [
          {
            "itemsequence": 1,
            "alerteroption": 1,
            "column": [
              {
                "attributecolumnid": 9459,
                "rawdata": {
                  "date": "06/14/2022"
                }
              }
            
    } ] } }

    And where alertoption is:

    // RESPECT_USER_PREFERENCE: 1
    // SEND_NOW: 2
    // SUPPRESS_ALL: 3
    

    Andrew

    ]]>
Reply
  • Chuck Rothman, the JSON in your post looks more like the output JSON from the GET (/api/{version}/isheet/{isheetid}/items/{itemid}) method.

    For the PUT, the payload JSON should look something more like this:

    {
      "data": {
        "item": [
          {
            "itemsequence": 1,
            "alerteroption": 1,
            "column": [
              {
                "attributecolumnid": 9459,
                "rawdata": {
                  "date": "06/14/2022"
                }
              }
            
    } ] } }

    And where alertoption is:

    // RESPECT_USER_PREFERENCE: 1
    // SEND_NOW: 2
    // SUPPRESS_ALL: 3
    

    Andrew

    ]]>
Children
No Data