In this post we will talk about how to do Salesforce Integration using webhooks. Salesforce supports webhooks for communicating with many other applications. Before getting started let understand what is webhooks?
What is WebHooks?
In Salesforce, we can define what action should happen when a specific event occurs. Triggers and flows can define before and after actions. Similarly, other applications provides event actions called webhooks, which is basically an HTTP POST to external URLs, which are registered under specific event actions. A Webhook will transfer (PUSH) information as soon as it has it.
Webhooks are the modern, web-oriented way for servers to receive notifications from other servers. There are multiple applications that currently support webhooks. Github, JIRA, ServiceNow, Twilio, Whatsapp are some examples.
Creation of Webhook supported URL
Let see Salesforce Integration using Webhooks. In Salesforce creating a webhook supported URL involves the below steps:
- Create Apex REST API
- Create a public Site
- Enable Apex class Access to the site
Salesforce Integration using Webhooks Video
Check below recording for step by step process to Salesforce and GitHub Integration using Webhook.