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

camel-salesforce - Lookups to polymorphic relationship fields must include an attributes object with a type property

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.24.0, 3.0.0-M2
    • Fix Version/s: 2.24.1, 3.0.0.M4
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When referencing a related record that is a polymorphic lookup, the JSON must include an attributes object with a type property indicating which type of Object is being referenced.

      E.g.:

      {
        "Description": "Contact HR for further information",
        "Status": "Completed",
        "Who": {
          "attributes": {
            "type": "Contact"
          },
          "External_Id_Field__c": "cfcec54d-5d77-4ffa-a2ec-7fa2ce0e9616"
        },
        "Subject": "Comment"
      }
      

      This attributes object is optional for non-polymorphic lookups, so no harm in including it in all lookups.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m