Skip to content

Commit

Permalink
Fix salesforce-update-sink.kamelet (#341)
Browse files Browse the repository at this point in the history
At runtime the bean is renamed which seems to cause the
NoSuchEndpointException: No endpoint could be found for: local-salesforce-1

CMLK-2211 Kamelet salesforce-update-sink throws NoSuchEndpointException
  • Loading branch information
claudio4j authored Jun 14, 2024
1 parent f92adc9 commit e7eb4c7
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions salesforce-update-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,21 @@ spec:
from:
uri: kamelet:source
steps:
- set-property:
- setHeader:
name: sObjectId
jsonpath: "$['sObjectId']"
- set-property:
jsonpath: "$.sObjectId"
- setHeader:
name: sObjectName
jsonpath: "$['sObjectName']"
jsonpath: "$.sObjectName"
- transform:
jsonpath: "$['payload']"
jsonpath: "$.payload"
- marshal:
json: {}
- toD: "{{local-salesforce}}:updateSObject?sObjectId=${exchangeProperty.sObjectId}&sObjectName=${exchangeProperty.sObjectName}&rawPayload=true"
- to:
uri: "{{local-salesforce}}:updateSObject"
parameters:
rawPayload: "true"
- removeHeader:
name: sObjectId
- removeHeader:
name: sObjectName

0 comments on commit e7eb4c7

Please sign in to comment.