# Get Rows

> Perform Get Rows through SharePoint.

Source: [https://genhealth.ai/docs/workflows/integrations/share-point/sharepoint_excel_get_rows](https://genhealth.ai/docs/workflows/integrations/share-point/sharepoint_excel_get_rows)

Integration: [SharePoint](https://genhealth.ai/docs/workflows/integrations/share-point.md)

- Handler: `sharepoint_excel_get_rows`

- Connection type: `sharepoint`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "SharePoint",
  "params": {
    "max_rows": 1000,
    "read_mode": "legacy",
    "header_row": 1,
    "skip_empty_rows": true
  },
  "handler": "sharepoint_excel_get_rows"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `workbook_url` — Workbook Url (expression, required)
  Required literal value or workflow expression.
- `worksheet_name` — Worksheet Name (select, required, dynamic options)
  Required selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- `header_row` — Header Row (number)
  Optional numeric value.
  Default: `1`
- `read_mode` — Read Mode (select)
  Optional selected identifier or value.
  Default: `"legacy"`
  Options: All matching rows ("all"), Up to N matching rows ("limited"), First matching row (Excel lookup) ("lookup"), First rows (existing behavior) ("legacy"), Headers and row bounds ("bounds")
- `max_rows` — Max Rows (number)
  Optional numeric value.
  Default: `1000`
- `filter_column` — Filter Column (expression)
  Optional literal value or workflow expression.
- `filter_value` — Filter Value (expression)
  Optional literal value or workflow expression.
- `skip_empty_rows` — Skip Empty Rows (boolean)
  Optional true-or-false value.
  Default: `true`

## Outputs

- `success` — Success
- `workbook` — Workbook
- `worksheet` — Worksheet
- `headers` — Headers
- `rows` — Rows
- `preview_rows` — Preview Rows
- `row_count` — Row Count
- `last_row_number` — Last Row Number
- `warnings` — Warnings
- `first_column_index` — First Column Index
- `truncated` — Truncated
- `error` — Error
- `error_message` — Error Message

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "workbook_url",
    "worksheet_name"
  ],
  "properties": {
    "max_rows": {
      "type": "number",
      "default": 1000,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "read_mode": {
      "enum": [
        "all",
        "limited",
        "lookup",
        "legacy",
        "bounds"
      ],
      "type": "string",
      "default": "legacy",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "header_row": {
      "type": "number",
      "default": 1,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "filter_value": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "workbook_url": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "filter_column": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "worksheet_name": {
      "type": "string",
      "description": "Required selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "select"
    },
    "skip_empty_rows": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "rows": {},
    "error": {},
    "headers": {},
    "success": {},
    "warnings": {},
    "workbook": {},
    "row_count": {},
    "truncated": {},
    "worksheet": {},
    "preview_rows": {},
    "error_message": {},
    "last_row_number": {},
    "first_column_index": {}
  },
  "additionalProperties": true
}
```
