Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15866

camel-salesforce: Support new SOSL search result

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.7.0
    • camel-salesforce
    • None
    • Unknown

    Description

      Starting with salesforce API v37 (from Summer '16 release. Current is v50), the response to SOSL searches changed. We should support both versions.

      From salesforce docs:

      New searchRecords wrapper in response body
      A new searchRecords tag surrounds the content in responses. For example:
      
      {
        "searchRecords" : [ {
          "attributes" : {
            "type" : "Contact",
            "url" : "/services/data/v36.0/sobjects/Contact/003xx000004TraiAAC"
          },
          "Id" : "003xx000004TraiAAC",
          "FirstName" : "Smith",
          "LastName" : "Johnson"
        }, {
          "attributes" : {
            "type" : "Account",
            "url" : "/services/data/v36.0/sobjects/Account/001xx000003DHXnAAO"
          },
          "Id" : "001xx000003DHXnAAO",
          "NumberOfEmployees" : 100
        } ]
      }
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jeremyross Jeremy Ross
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: