Getting Output with Webhook
Last updated
Was this helpful?
Last updated
Was this helpful?
Now, it time to get result. For the plugin to function, you need to define a "backend event." Bunun için Backend Workflow özelliğini kullanabiliyor olmalısınız. Bu özelliği kullanmak için "Template", "Agency" veya "Paid" planda olmanız gerekir.Follow these steps to complete this process:
Go to the Backend Workflows section.
Click the New API Workflow button to create a new API workflow.
This step is essential for the plugin to process the required data appropriately.
Creating a New Backend Workflow and Configuring Parameters
Workflow Name:
In the opened window, assign a name for the workflow. For example, you can use “get-response.”
API Workflow Settings:
Check the “Expose as a public API workflow” option. This setting makes your workflow accessible as an API endpoint.
Adding Parameters:
Click on the “Add a new parameter” button.
Configure the workflow with the following parameters:
output (text)
output_list (list of text)
run_id (text)
expense (number)
For each of these fields, ensure that the Optional checkbox is activated. Also, verify that the object type remains as JSON Object.
These parameters are critical for the correct operation of the system, so please make sure to add all of them without any omissions.
Add a new Action
Click on the “Click here to add an action” link. From the menu that appears, select the Make changes to a thing option.
Setting the Thing to Change
In the Thing to change section, perform a search for “All Outputs”.
Use a constraint by matching the run_id field with the run_id parameter received from the event.
Then, append the expression :first item to select the first entry. This will update the first record among the existing “All Outputs”.
Updating the Fields
Select the Change another field option to update the following data:
expense = expense
output = output
output_list = output_list
run_id = run_id
After completing all these settings correctly, the corresponding fields in the “All Outputs” record will be updated.