Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-2497

ACS Event Update - Custom Data Field Not Being Updated

    Details

      Description

      Updating an ACS event custom field returns status 200 but fails to update the event data.

      Example Code:

      var custom_data =

      { toLawEnforcement:true //boolean custom field in ACS }

      Cloud.Events.update(

      { event_id : eventID, custom_data: custom_data }

      , function(e)

      { Ti.API.log(JSON.stringify(e)); }

      );

      Example Debug Data from ACS

      { "custom_data" => "

      {"toLawEnforcement":true}

      ", "event_id" => "50df0018e0b1ba1a59000866", "ti_analytics" => "

      {"id":"C5E5A427-5F5A-4815-B8BB-80801E57F5EF","mid":"74478444-DCD9-4DFD-B5A1-324FBD7F6585","aguid":"13cd9f18-adc0-469e-8f14-2d2f2c8cc311","event":"cloud.events.update","deploytype":"development","sid":"CE63F3D2-F16F-421D-B66A-B807EF0E57C6"}

      ", "suppress_response_codes" => "true", "oauth_consumer_key" => "xxxxxxxxxxxxxxxxx", "_session_id" => "qbQ4U6iLK2RCjY1nV4fy87IJ6JY", "controller" => "events", "action" => "update", "version" => "v1", "format" => "json" }

      Despite this, the custom field data remains false. I have tried as both boolean and string.

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              bp4151 Bruce Parr
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration