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

Jeremy Ross commented on CAMEL-16086:
-------------------------------------

I'm also a little confused why these are required. My understanding is that 
External Id field (if applicable), SObject, and http method for each 
sub-request should all be provided *inside* the raw payload. 

The http method for the actual/parent HTTP composite resource is always POST, 
so again, I don't see a reason to provide this.

[[email protected]] Do we have the same understanding?

> camel-salesforce - CompositeApiProcessor requires too many fields in RAW mode
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-16086
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16086
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>    Affects Versions: 3.7.1
>            Reporter: Jesse Sightler
>            Priority: Minor
>
> [https://github.com/apache/camel/blob/ae2c79dcd64424acc82a29c9a46620809ea6414c/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/CompositeApiProcessor.java#L251https://github.com/apache/camel/blob/master/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/CompositeApiProcessor.java#L251|https://github.com/apache/camel/blob/master/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/CompositeApiProcessor.java#L251]
>  
> This requires the SOBJECT_EXT_ID_NAME, but this should not be required. SFDC 
> Documentation: 
> [https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_composite.htm]
> In our case, we are using platform events, and upsert ids would not make 
> sense for us.
>  
> Also this line is requiring a COMPOSITE_METHOD: 
> [https://github.com/apache/camel/blob/ae2c79dcd64424acc82a29c9a46620809ea6414c/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/CompositeApiProcessor.java#L252]
>  
> This seems unnecessary, as it is already defaulted to POST in 
> DefaultCompositeApiClient: 
> [https://github.com/apache/camel/blob/ae2c79dcd64424acc82a29c9a46620809ea6414c/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/DefaultCompositeApiClient.java#L106]
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to