function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
namannaman 

How to work with WorkMarket Webhook, test it and get response in salesforce

How can I test the response for this event as I are not able to get the debug log in salesforce based on webhook event triggered. I am giving this URL to Base Url https://retailenv-sourcesupport.cs12.force.com/services/apexrest/workmarket_webhook. This include site url then /services/apexrest/workmarket_webhook. workmarket_webhook is mentioned in apex class @RestResource(urlMapping='/workmarket_webhook/*').

I need to know what should I put in Header if I add some Headers mentioned in image below and what should I put in body part. As I know these two are predefined in other website webhook we don't need to put Headers and Body manually. I tried to test it for many events but it does not response back to salesforce apex class and no debug log is making. Also, there is no button something like "test response" here.

Please let me know what I am doing wrong here.

User-added image
ShashankShashank (Salesforce Developers) 
This might give you some clues: https://www.salesforce.com/us/developer/docs/api_rest/Content/quickstart_code.htm#get_version