Coginiti icon

Coginiti

Interact with Coginiti API (Catalog, Execute, Identity Management)

Execute → Execute Block

AI-generated

Summary

Execute a specific CoginitiScript block within a catalog package by specifying the package path and block name, passing optional arguments and parameters, and selecting the response data format.

Inputs

  • Package (required) — Absolute path to the CoginitiScript package containing the block to run (e.g., '@Personal/My Projects/demo/customers').
  • Block Name (required) — Name of the block within the package to execute (e.g., 'CustomersWithEmailDomain').
  • Connection Name (required) — Name of the database connection to use during block execution.
  • Arguments Mode — Method to provide arguments for the block: either add them manually one by one or provide a JSON object.
  • Arguments — Key-value pairs of arguments to pass to the block, either individually or as a JSON object, depending on 'Arguments Mode'.
  • Parameters Mode — Method to provide parameters for the block: either add them manually one by one or provide a JSON object.
  • Parameters — Key-value pairs of parameters to pass into the block, either individually or as a JSON object, depending on 'Parameters Mode'.
  • Response Format — Format in which to return the execution results, options include JSON, CSV, or Apache Arrow.
  • Project Version — Version identifier for @Project Hub assets; if omitted, the latest version is used.

Output shape

a single item containing the block execution result in the chosen response format

The response data is returned in JSON by default but can be optionally returned as CSV text or as binary Apache Arrow format. Arguments and parameters can be specified either manually or as JSON. The operation requires a valid Coginiti connection and package details.

Examples

Example 1: Execute a block named 'CustomerList' from package '@Personal/Demo/CustomerData' with specified parameters and arguments to retrieve results in JSON format.

Set resource to 'Execute', operation to 'Execute Block', package to '@Personal/Demo/CustomerData', block name to 'CustomerList', connection name to a valid database connection, optionally set arguments and parameters either in manual or JSON mode, and choose response format as JSON.

Links

Discussion