4 min readUpdated Mar 2, 2026

OneDriveReadFilesEditor Documentation

Overview

The OneDriveReadFilesEditor is a component designed for integrating with OneDrive to browse, filter, and select files. It is part of the Vantage analytics and data platform and allows users to configure various settings for reading files from OneDrive, including file type filtering, search capabilities, and controlling the maximum number of files output. The selected files, along with their metadata, can be further processed with AI tools like Image Analysis or PDF Extract.

Purpose

The primary purpose of the OneDriveReadFilesEditor is to provide an interface for users to interact with their OneDrive files within a data workflow. It enables users to:

Settings

1. File Type

2. Search Query

3. Selected Files

4. Max Files

5. Include Content

How It Works

The OneDriveReadFilesEditor component renders an interface to allow users to control file selection and settings through various input elements (dropdowns, text fields, switches). The state of these settings is managed through props that are updated via callback functions (updateField). When a user interacts with any UI element, the corresponding state is updated, triggering any connected workflow steps in the Vantage platform.

Data Expectations

The OneDriveReadFilesEditor expects the following data structures:

Use Cases & Examples

Use Case 1: Image Processing

A tech company may want to analyze images stored in OneDrive for object detection. Using the OneDriveReadFilesEditor, they can filter only image file types, search for specific keywords (e.g., "test.jpg"), and select multiple images to be processed by an image analysis tool.

Use Case 2: Document Retrieval

A financial institution needs to fetch specific documents (like invoices). Utilizing the search query feature, they can look for terms like "invoice" in their OneDrive files and restrict the output to only PDFs for easier processing.

Example Configuration

To solve the document retrieval use case, the component may be configured as follows:

json
{
    "fileType": "pdf",
    "searchQuery": "invoice",
    "selectedFiles": ["invoice_2023_01.pdf", "invoice_2023_02.pdf"],
    "maxFiles": 10,
    "includeContent": true
}

In this example: