It's Mandatory to Save the function after generating the REST API Key.
Once you have your form built, Function has been configured in Zoho CRM and the REST API has been generated, Navigate to the Zoho Forms > In your Respective Form builder > Settings tab >Prefill > Dynamic Prefill - Webhook > Click Configure.
Search Configuration:
The Search Field will be the form field which will be used to retrieve related information from an external service. Select a form field from the dropdown as the Search Field. We need to choose the "Choose the Product" field to search the record in CRM using the Webhook.
Webhook Details:
The Webhook URL is the endpoint where your form will send requests to the external service on search. Enter the full URL of the external service to retrieve the data. We need to pass the REST API Key URL from Zoho CRM as mentioned in the Previous Step.
FuntionName : It's the Name for the Standalone Function from Zoho CRM where the REST API Key has been generated.
Authorization Type : General
The Record Identifier Key is used as a query parameter to send the value in the Search Field to Zoho CRM. During a record search, the webhook will include the Record Identifier Key as a query parameter. The value of the Search Field will be sent as the query parameter value. So, The Search Value that we've passed as a String in the Zoho CRM Standalone Function should be Configured here. Product_Name is the string available in the Argument mapping that we've used in the above Standalone Script.
URL parameters will be added as query strings to the URL for sending additional information with the Webhook request.
We need to Pass the below informations :
auth_type : apikey
zapikey : [It'll be available in the Zoho CRM - Rest API] Screenshot shared above.
Test Webhook:
Once the Webhook has been configured, In this step, you can test the webhook to ensure it retrieves the correct data based on the value entered in the Search Field. Enter a sample value in place of <Search Field's value> and run the test to send the request to Zoho CRM. It is checked if the format of the response received is valid. You will be able to proceed to the next step only if the received response is valid.
Auto-populate field values from Zoho CRM in the Zoho Form using Dynamic Webhook
