This is an automated email from the ASF dual-hosted git repository.
jeremyross pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new de618ec7f31 camel-salesforce: Fix param name/usage
de618ec7f31 is described below
commit de618ec7f3103f8a4d2e1d877a356cdeb971907f
Author: Jeremy Ross <[email protected]>
AuthorDate: Tue Nov 29 11:08:01 2022 -0600
camel-salesforce: Fix param name/usage
for the retrieve sobject collections operation
---
.../src/main/docs/salesforce-component.adoc | 4 ++--
.../internal/processor/CompositeSObjectCollectionsProcessor.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/components/camel-salesforce/camel-salesforce-component/src/main/docs/salesforce-component.adoc
b/components/camel-salesforce/camel-salesforce-component/src/main/docs/salesforce-component.adoc
index 7b7e6961839..6e57d7878e5 100644
---
a/components/camel-salesforce/camel-salesforce-component/src/main/docs/salesforce-component.adoc
+++
b/components/camel-salesforce/camel-salesforce-component/src/main/docs/salesforce-component.adoc
@@ -912,8 +912,8 @@ Retrieve one or more records of the same object type.
|===
| Parameter | Type | Description | Default | Required
-| ids | List of String or comma-separated string | A list of one or more IDs
of the objects to return. All IDs must belong to the same object type. | | x
-| fields | List of String or comma-separated string | A list of fields to
include in the response. The field names you specify must be valid, and you
must have read-level permissions to each field. | | x
+| sObjectIds | List of String or comma-separated string | A list of one or
more IDs of the objects to return. All IDs must belong to the same object type.
| | x
+| sObjectFields | List of String or comma-separated string | A list of fields
to include in the response. The field names you specify must be valid, and you
must have read-level permissions to each field. | | x
| sObjectName | String | Type of SObject, e.g. `Account` | | x
| sObjectClass | String | Fully-qualified class name of DTO class to use for
deserializing the response. | | Required if `sObjectName` parameter does not
resolve to a class that exists in the package specified by the `package` option.
|===
diff --git
a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/CompositeSObjectCollectionsProcessor.java
b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/CompositeSObjectCollectionsProcessor.java
index 979c2d4708b..4627a02d830 100644
---
a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/CompositeSObjectCollectionsProcessor.java
+++
b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/CompositeSObjectCollectionsProcessor.java
@@ -93,8 +93,8 @@ public class CompositeSObjectCollectionsProcessor extends
AbstractSalesforceProc
private boolean processRetrieveSObjectCollections(Exchange exchange,
AsyncCallback callback)
throws SalesforceException {
- List<String> ids =
getListParameter(SalesforceEndpointConfig.SOBJECT_IDS, exchange, USE_BODY,
NOT_OPTIONAL);
- List<String> fields =
getListParameter(SalesforceEndpointConfig.SOBJECT_FIELDS, exchange, USE_BODY,
NOT_OPTIONAL);
+ List<String> ids =
getListParameter(SalesforceEndpointConfig.SOBJECT_IDS, exchange, IGNORE_BODY,
NOT_OPTIONAL);
+ List<String> fields =
getListParameter(SalesforceEndpointConfig.SOBJECT_FIELDS, exchange,
IGNORE_BODY, NOT_OPTIONAL);
String sObjectName =
getParameter(SalesforceEndpointConfig.SOBJECT_NAME, exchange, IGNORE_BODY,
IS_OPTIONAL);
// gets class by sObjectName if not null, otherwise tries the
SOBJECT_CLASS option