You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by zregvart <gi...@git.apache.org> on 2016/11/18 15:49:39 UTC
[GitHub] camel pull request #1277: CAMEL-10498 Update Salesforce component to support...
GitHub user zregvart opened a pull request:
https://github.com/apache/camel/pull/1277
CAMEL-10498 Update Salesforce component to support approval REST API
This PR adds support for getting and sending approvals for
processing via Salesforce REST API[1].
Two new operations were added `approvals` to fetch any approvals already
in progress, and `approval` to initiate approval process on the supplied
record or records (batch).
For instance, `approvals` can be simply used as:
...to("salesforce:approvals")
.split().body()
.log("${body.entityId} - ${body.instanceStatus}")
And to send a record for approval you can use:
...to("salesforce:approval?approval.actionType=Submit&...")
.log("${body.id} - ${body.instanceStatus}")
The `approval` operation has the ability to set properties on the
endpoint (let's call that template), via message headers and message
body. These can be combined, to place default values on the endpoint
(template), and runtime values trough headers or message body.
If the message body is an `Iterable` of `ApprovalRequest` objects then
they will be submitted in a batch.
[1]
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_process_approvals.htm
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zregvart/camel CAMEL-8396-approval
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1277.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1277
----
commit 87625057bfd1f55b631bd91c8793376a0955a43d
Author: Zoran Regvart <zo...@regvart.com>
Date: 2016-11-14T15:33:19Z
CAMEL-8396 Update Salesforce component to support new REST APIs in Sa...
...lesforce API V33.0
This commit adds support for getting and sending approvals for
processing via Salesforce REST API[1].
Two new operations were added `approvals` to fetch any approvals already
in progress, and `approval` to initiate approval process on the supplied
record or records (batch).
For instance, `approvals` can be simply used as:
...to("salesforce:approvals")
.split().body()
.log("${body.entityId} - ${body.instanceStatus}")
And to send a record for approval you can use:
...to("salesforce:approval?approval.actionType=Submit&...")
.log("${body.id} - ${body.instanceStatus}")
The `approval` operation has the ability to set properties on the
endpoint (let's call that template), via message headers and message
body. These can be combined, to place default values on the endpoint
(template), and runtime values trough headers or message body.
If the message body is an `Iterable` of `ApprovalRequest` objects then
they will be submitted in a batch.
[1]
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_process_approvals.htm
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] camel pull request #1277: CAMEL-10498 Update Salesforce component to support...
Posted by zregvart <gi...@git.apache.org>.
Github user zregvart closed the pull request at:
https://github.com/apache/camel/pull/1277
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---