# List Folder

> Perform List Folder through SharePoint.

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

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

- Handler: `sharepoint_list_folder`

- 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": {
    "pdf_only": true,
    "max_files": 200
  },
  "handler": "sharepoint_list_folder"
}

```

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

## Inputs

- `folder_url` — Folder Url (expression, required)
  Required literal value or workflow expression.
- `pdf_only` — Pdf Only (boolean)
  Optional true-or-false value.
  Default: `true`
- `max_files` — Max Files (number)
  Optional numeric value.
  Default: `200`

## Outputs

- `success` — Success
- `status` — Status
- `folder_id` — Folder Id
- `drive_id` — Drive Id
- `files` — Files
- `file_names` — File Names
- `count` — Count
- `truncated` — Truncated
- `error` — Error
- `error_message` — Error Message

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "folder_url"
  ],
  "properties": {
    "pdf_only": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "max_files": {
      "type": "number",
      "default": 200,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "folder_url": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "files": {},
    "status": {},
    "success": {},
    "drive_id": {},
    "folder_id": {},
    "truncated": {},
    "file_names": {},
    "error_message": {}
  },
  "additionalProperties": true
}
```
