Is it possible to use Named Credentials to authenticate a webhook? Assuming Oauth2 is selected in External Credentials what would be the next steps if e.g. Browser Flow authentication selected
Not sure if the external systems provide with an option to configure the headers which can be used for authentication when configuring webhooks callback url as the Salesforce org domain needs to be authenticated. @salesforce bolt any suggestions?
@@SalesforceBoltcan you please elaborate on it? Still not clear about necessity of named credentials for this use case. The webhook will be invoked on behalf of guest user and this users profile should be adjusted solely (to allow access to web service class). In which cases named creds will be mandatory? Thanks
Both are mechanism for data transfer. CDC can be used to transfers the changes in real time to another database or data lake. Using webhooks you will be able to send realtime updates based on other events!
How we can configure real time sync, like when contact gets created in sales force i wanna trigger a webhook, likewise for update and delete
You can use Platform Events or CDC for that.
Correction in the last line I guess,
Now whenever Server B is receiving a ping it will hit the request to "Server C" and will fetch the data.
Is it possible to use Named Credentials to authenticate a webhook? Assuming Oauth2 is selected in External Credentials what would be the next steps if e.g. Browser Flow authentication selected
Yes that should be doable with named creds.
Thanks sir, a QQ - does all DML operation work? Update operation doesn't seem to work for me. Insert works fine. Any thoughts?
Yes it will work on all trigger operations
Make sure you are having it in after insert and update both.
Is there a way to extract data from Salesforce to an external webstie?
Couldn't you achieve the same result by providing the third-party system the main domain of the org?
Is creating a site really necessary?
Not sure if the external systems provide with an option to configure the headers which can be used for authentication when configuring webhooks callback url as the Salesforce org domain needs to be authenticated. @salesforce bolt any suggestions?
@@abhinavm65good point!
Security protocol for a public site should be there. Salesforce domain won’t let you hit the url directly.
Since Salesforce sites create a public site, is named credential mandatory?
Depends on the security protocol that you wish to use.
@@SalesforceBoltcan you please elaborate on it? Still not clear about necessity of named credentials for this use case.
The webhook will be invoked on behalf of guest user and this users profile should be adjusted solely (to allow access to web service class).
In which cases named creds will be mandatory?
Thanks
Amazing tutorial, thanks for sharing 🙏
Glad you liked it!
What is the difference between the Webhook and Change data capture?
Both are mechanism for data transfer. CDC can be used to transfers the changes in real time to another database or data lake.
Using webhooks you will be able to send realtime updates based on other events!
It would be great to see one with best practices for Webhook setup.
Thanks for the suggestion, I will add it in the queue
Thank you!
Glad you like it.
Great Explanation Kapil Sir 👍🏻👍🏻👍🏻👍🏻, also I want to Volunteer for the Bharat Dreamin event please let me know if I can be of any help.
Thanks Niket, ping me your number on LinkedIn or twitter I will add you in volunteers groups!