# Import File

> Perform Import File through SharePoint.

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

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

- Handler: `sharepoint_import_file`

- 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": {
    "document_type": "Other",
    "show_in_inbox": false
  },
  "handler": "sharepoint_import_file"
}

```

[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.
- `item_id` — Item Id (expression)
  Optional literal value or workflow expression.
- `file_name` — File Name (expression)
  Optional literal value or workflow expression.
- `document_type` — Document Type (text)
  Optional text value.
  Default: `"Other"`
- `show_in_inbox` — Show In Inbox (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `status` — Status
- `document_id` — Document Id
- `s3_path` — S3 Path
- `item_id` — Item Id
- `file_name` — File Name
- `sha256` — Sha256
- `size` — Size
- `was_existing` — Was Existing
- `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": [
    "folder_url"
  ],
  "properties": {
    "item_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "file_name": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "folder_url": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_type": {
      "type": "string",
      "default": "Other",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "show_in_inbox": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "size": {},
    "error": {},
    "sha256": {},
    "status": {},
    "item_id": {},
    "s3_path": {},
    "success": {},
    "file_name": {},
    "document_id": {},
    "was_existing": {},
    "error_message": {}
  },
  "additionalProperties": true
}
```
