[
https://issues.apache.org/jira/browse/CAMEL-13638?focusedWorklogId=259320&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-259320
]
ASF GitHub Bot logged work on CAMEL-13638:
------------------------------------------
Author: ASF GitHub Bot
Created on: 13/Jun/19 07:15
Start Date: 13/Jun/19 07:15
Worklog Time Spent: 10m
Work Description: zregvart commented on pull request #2974: CAMEL-13638:
Include attributes/type info in relationship lookups.
URL: https://github.com/apache/camel/pull/2974
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 259320)
Time Spent: 20m (was: 10m)
> camel-salesforce - Lookups to polymorphic relationship fields must include an
> attributes object with a type property
> --------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-13638
> URL: https://issues.apache.org/jira/browse/CAMEL-13638
> Project: Camel
> Issue Type: Improvement
> Components: camel-salesforce
> Affects Versions: 2.24.0, 3.0.0-M2
> Reporter: Jeremy Ross
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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.:
> {code:json}
> {
> "Description": "Contact HR for further information",
> "Status": "Completed",
> "Who": {
> "attributes": {
> "type": "Contact"
> },
> "External_Id_Field__c": "cfcec54d-5d77-4ffa-a2ec-7fa2ce0e9616"
> },
> "Subject": "Comment"
> }
> {code}
> This {{attributes}} object is optional for non-polymorphic lookups, so no
> harm in including it in all lookups.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)