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

camel-salesforce: Support new SOSL search result

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.7.0
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: