Uploaded image for project: 'StreamSets Data Collector'
  1. StreamSets Data Collector
  2. SDC-9169

Salesforce Summer '18 release breaks Platform Events

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: P1 (Blocker)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0
    • Component/s: None
    • Labels:
      None
    • Doc Impact:
      No
    • Testing Status:
      Not Required

      Description

      Salesforce Summer '18 changes the way that Platform Event schemas work.

      Salesforce changed the DateTime type to align with an epoch time in Avro where it is represented as a long. By default, v42.0 and below of the eventSchema API will return the Avro representation (where DateTimes are now longs). But when you subscribe to the channel, unless you are requesting the undocumented COMPACT format, Salesforce returns JSON where the DateTime is a string.

      There is a workaround for this for now: hit the EXPANDED version of the eventSchema API to receive the JSON types - /services/data/43.0/sobjects/<PLATFORM_EVENT__e>/eventSchema?payloadFormat=EXPANDED

      Note that this returns a different schema than before this change.

        Attachments

          Activity

            People

            Assignee:
            pat Pat Patterson
            Reporter:
            pat Pat Patterson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: