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

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.24.0, 3.0.0-M2
    • 2.24.1, 3.0.0.M4
    • camel-salesforce
    • None
    • 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

              Unassigned Unassigned
              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