You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/01/23 10:13:43 UTC
(camel-kamelets) branch 4.0.x updated: Add rawPayload option to Salesforce source connector - 4.0.x (#1847)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/4.0.x by this push:
new 6a777513 Add rawPayload option to Salesforce source connector - 4.0.x (#1847)
6a777513 is described below
commit 6a77751323d11b38ea14192a89a6a1dea63dbf79
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 23 11:13:38 2024 +0100
Add rawPayload option to Salesforce source connector - 4.0.x (#1847)
* Add rawPayload option to Salesforce source connector
Signed-off-by: Andrea Cosentino <an...@gmail.com>
* Add rawPayload option to Salesforce source connector
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---------
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/salesforce-source.kamelet.yaml | 6 ++++++
.../src/main/resources/kamelets/salesforce-source.kamelet.yaml | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/kamelets/salesforce-source.kamelet.yaml b/kamelets/salesforce-source.kamelet.yaml
index 877d48e6..a386120d 100644
--- a/kamelets/salesforce-source.kamelet.yaml
+++ b/kamelets/salesforce-source.kamelet.yaml
@@ -123,6 +123,11 @@ spec:
description: The operation to use
type: string
default: subscribe
+ rawPayload:
+ title: Raw Payload
+ description: Use raw payload String for request and response (either JSON or XML depending on format), instead of DTOs, false by default.
+ type: boolean
+ default: false
types:
out:
mediaType: application/json
@@ -150,6 +155,7 @@ spec:
notifyForOperationDelete: "{{notifyForOperationDelete}}"
notifyForOperationUndelete: "{{notifyForOperationUndelete}}"
sObjectQuery: "{{query}}"
+ rawPayload: "{{rawPayload}}"
steps:
- marshal:
json: {}
diff --git a/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml
index 877d48e6..a386120d 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml
@@ -123,6 +123,11 @@ spec:
description: The operation to use
type: string
default: subscribe
+ rawPayload:
+ title: Raw Payload
+ description: Use raw payload String for request and response (either JSON or XML depending on format), instead of DTOs, false by default.
+ type: boolean
+ default: false
types:
out:
mediaType: application/json
@@ -150,6 +155,7 @@ spec:
notifyForOperationDelete: "{{notifyForOperationDelete}}"
notifyForOperationUndelete: "{{notifyForOperationUndelete}}"
sObjectQuery: "{{query}}"
+ rawPayload: "{{rawPayload}}"
steps:
- marshal:
json: {}