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

camel-salesforce: include all related objects in generated DTOs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • 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

      Generated DTOs do not have a reference to related objects if the related object does not have at least one external ID field. The logic for this was probably that you can't use a related object in upserts if that related object doesn't have an external Id field. There are two issues with this. 1) you can upsert on the standard `Id` field, and 2) there's nowhere to put the related objects returned in a parent-to-child relationship query.

      e.g. the result from this query

      SELECT Id, RecordType.Name FROM Contact
      

      will not contain the RecordType object, because RecordType was not in the DTO Java class.

        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: