salesforce composite upsert sink Salesforce composite upsert Sink

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Upsert Composite List of sObjects in Salesforce.

The body received must contain List of JSON SObjects to insert/update inside the records attribute, for example:

{"records" : ["attributes" : {"type" : "KameletSinkSObjectc"},"ExtIdc" : "1","Namec": "Ziauddin", "Cityc": "Bhopal"], ["attributes" : {"type" : "KameletSinkSObjectc"},"ExtIdc" : "2","Namec": "Shaikh", "Cityc": "Bhopal"] }

Configuration Options

The following table summarizes the configuration options available for the salesforce-composite-upsert-sink Kamelet:

Property Name Description Type Default Example

clientId

Consumer Key

Required The Salesforce application consumer key.

string

clientSecret

Consumer Secret

Required The Salesforce application consumer secret.

string

password

Password

Required The Salesforce user password.

string

sObjectIdName

Object Id Name

Required The Field Name of the External ID of the Salesforce object. Required if using a key-value pair.

string

sObjectName

Object Name

Required The type of the Salesforce object. Required if using a key-value pair.

string

Contact

userName

Username

Required The Salesforce username.

string

loginUrl

Login URL

The Salesforce instance login URL.

string

https://login.salesforce.com

Dependencies

At runtime, the salesforce-composite-upsert-sink Kamelet relies upon the presence of the following dependencies:

  • camel:core

  • camel:jsonpath

  • camel:jackson

  • camel:salesforce

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:salesforce-composite-upsert-sink"

You can now run it directly through the following command

camel run route.yaml