Welcome to Portal

?Unknown\pull-down

Welcome to Zoho Cares

Bienvenido a Soporte de Zoho

Search our knowledge base, ask the community or submit a request.

Parameters

Parameters provide the ability to customize JSON input by adding a collection of key-value pairs as input to a task. These values can either be static or dynamically selected from the JSON input or the context object using specific paths. 


Context Object is a unique JSON entity containing details about the state's execution. For further insights, refer to the Context Object section.


Parameters are available for the following states:

  • Function
  • Webhook
  • Task Engine

For better understanding, let's consider the following standard JSON input as an example:

{
"employee_details": {
      "emp_name": "John Doe",
      "emp_id": "357",
      "email": "john.doe@example.com",
      "position": "Software Engineer"
  },
"department": "Engineering",
"start_date": "2024-04-01",
"manager": "Jane Smith"
}
To extract specific information, you can define these parameters as given below in the code view:
{
"get_employee_details": {
      "type": "function",
      "next": "End",
      "start": true,
      "function_id": "<function_name>",
      "parameters": {
            "name": "$.employee_details.emp_name",
            "ID": "$.employee_details.emp_id"
            "execution_id": "$$.execution.id",
            "auth_key": "ec20c6b7-e117-4551-8395-e9189b0b738d"
      }
}
}

With the given parameter configuration, the following JSON will be passed:

{
      "name": "John Doe",
      "ID": "357",
      "execution_id": "<execution_id of state>",
      "auth_key": "ec20c6b7-e117-4551-8395-e9189b0b738d"
}




Helpful?00
Updated: 8 months ago
Share :
Follow

Subscribe to receive notifications from this article.