> ## Documentation Index
> Fetch the complete documentation index at: https://synthetiq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# serviceCall

> Call an external service operation and store the results in an output table

Call an external service operation and store the results in an output table:

```typescript theme={null}
{
  service: "shopify",
  operation: "listOrders",
  params: {
    status: "any",
    limit: 250,
    created_at_min: "{{var.startDate}}",
  },
  outputTable: "raw_orders",
  outputSchema: {
    id: "VARCHAR",
    order_number: "INTEGER",
    total_price: "VARCHAR",
    created_at: "VARCHAR",
    customer_id: "VARCHAR",
  },
}
```

| Field          | Required | Description                                                                                    |
| -------------- | -------- | ---------------------------------------------------------------------------------------------- |
| `service`      | Yes      | Service name                                                                                   |
| `operation`    | Yes      | Tool name on the service                                                                       |
| `outputTable`  | Yes      | Name of the table this step produces                                                           |
| `outputSchema` | Yes      | Column names and types for the result output table                                             |
| `params`       | No       | Input parameters (supports [template variables](/docs/platform-docs/workflows-framework/variables)) |

Service steps can also include [dataPath](/docs/platform-docs/workflows-framework/data-path), [fieldMapping](/docs/platform-docs/workflows-framework/field-mapping), [pagination](/docs/platform-docs/workflows-framework/pagination), and [forEach](/docs/platform-docs/workflows-framework/foreach) configuration.

## Validation

| Check                                                               |
| ------------------------------------------------------------------- |
| `service` and `operation` are required                              |
| `params` are validated against the service operation's input schema |
