Example Java component for the elastic.io platform written in Java
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
gradle/wrapper Initial commit Oct 12, 2016
src/main Added http proxy handling Oct 20, 2016
.gitignore Initial commit Oct 12, 2016
README.md Initial commit Oct 12, 2016
build.gradle Using sailor release 1.1.3 Oct 17, 2016
component.json Added QueryObjects trigger Oct 17, 2016
gradlew Initial commit Oct 12, 2016
gradlew.bat Initial commit Oct 12, 2016
logo.png Initial commit Oct 12, 2016

README.md

salesforce-component

elastic.io component that connects to Salesforce API (node.js)

How to provision it

Push the code

You need a new repository in your elastic.io workspace:

image

then push the code into it:

git push elasticio master

Create new App in Salesforce

In order to make OAuth work you need a new App in your Salesforce. During app creation process you will be asked to specify the callback URL, to process OAuth auehtncation via elastic.io platform your callback URL should be

https://your-tenant.elastic.io/callback/oauth2

More information you can find here

Configure OAuth Client key/secret

In the component repository you need to specify OAuth Client credentials as environment variables. You would need two variables

image

You would need two variables:

  • SALESFORCE_KEY - your OAuth client key
  • SALESFORCE_SECRET - your OAUth client secret

How to use it

Actions

Each action creates a single object. Input metadata is fetched dynamically from your Salesforce account. Output metadata is the same as input metadata, so you may expect all fields that you mapped as input to be returned as output.