read_tasks
Retrieve tasks from a CData Sync job to view data replication definitions, including queries, tables, and indexes for each task.
Instructions
Access tasks within a specific job. Each task defines specific data to replicate.
REQUIRED: jobName parameter for all actions.
RETURNS:
get: Array of task objects with TaskId, Query, Table, and Index
COMMON ERRORS:
"Job not found" - Verify job name with read_jobs
"No tasks defined" - Job may be empty, add tasks with write_tasks
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Operation: list all, count tasks, or get tasks for a specific job. For most cases, use 'get' to retrieve tasks by job name. | get |
| jobName | Yes | Job name containing the tasks (REQUIRED for all actions). Case-sensitive. | |
| filter | No | OData filter expression. SUPPORTED: eq, ne, gt, lt, ge, le, and, or LIMITED SUPPORT: contains(), startswith() NOT SUPPORTED: nested queries, computed properties | |
| select | No | Properties to include (e.g., 'TaskId,Table,Query,Index') | |
| top | No | Maximum results to return | |
| skip | No | Results to skip for pagination | |
| workspaceId | No | Workspace ID to use for this operation. Overrides the default workspace. Use 'default' for the default workspace or a UUID for specific workspaces. |