elasticio / salesforce-component

elastic.io component that connects to Salesforce API (node.js)
Apache License 2.0
3 stars 7 forks source link

Implement a new smart webhook trigger. #114

Open ShkarupaNick opened 4 years ago

ShkarupaNick commented 4 years ago

The main idea:

Webhook Trigger subscribes to changes during flow starts.
We can use Salesforce Tooling API for it. Using this API we can deploy our custom trigger code, which can call our webhook endpoint after object create/change event. And also we can delete this trigger code during flows stopping.

Example of salesforce ApexTrigger: https://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/