camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhiraj Bokde (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10193) add support for lookup field using an sObject external id
Date Thu, 04 Aug 2016 18:01:20 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15408222#comment-15408222
] 

Dhiraj Bokde commented on CAMEL-10193:
--------------------------------------

To answer your concerns:

a) So I figured it would be an expensive operation. We should put a guard to avoid a general
performance hit as a boolean flag to enable this feature. But it should automatically generate
correct SObject relationship fields from the master description. 
b) The SObject DTO should support all external id fields in the relationship type since any
one of those can be used in a lookup. A use case or route might use one, and another might
use another field. The component should support them all. 
c) The component doesn't care which relationship field(s) are populated by user as they are
just part of the payload. Salesforce will take care of doing the appropriate lookup. User
should only populate fields that they want to use for correlation. If you are comparing this
to existing external id operations that require a field name, it's because it's required in
those Salesforce REST URLs, which is not an issue for these relationship fields. 

> add support for lookup field using an sObject external id
> ---------------------------------------------------------
>
>                 Key: CAMEL-10193
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10193
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-salesforce
>    Affects Versions: 2.17.2
>            Reporter: Satguru Srivastava
>            Assignee: Dhiraj Bokde
>
> A SalesForce object can have a field of type called "lookup". 
> This field is used to by a record in a SalesForce object to reference a record in another
SalesForce object. 
> The value of this field could be a string in which case it would be the record id of
the other record or it could be an object in which case it would contain the other Object's
external field name and its value in that other record. 
> Doing lookup/reference by external id is very useful  specially for insert/upsert operations
as otherwise one has to maintain record id of each of the records in the other Object.
> Camel SalesForce component supports lookup by record id. 
> There is no support for the second type that is the external field name and value type.
>  
> See here for more information on this 
> https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_upsert.htm
>  Section "Upserting Records and Associating with an External ID" 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message