Zoho DataPrep supports importing data from OneDrive, a file hosting service operated by Microsoft. OneDrive enables users to store, protect, share and synchronize their files.
To import data from OneDrive
1. Open an existing pipeline or
create a pipeline from the
Home Page,
Pipelines tab or
Workspaces tab and click the
Add data option.
Info: You can also click the Import data
icon at the top of the pipeline builder and bring data from multiple sources into the pipeline.
2. Choose the Cloud storage category from the left pane and click the OneDrive icon to import from OneDrive. You can also search the required cloud storage services in the search box.
If you had already added a OneDrive connection earlier, click the Saved data connection option and proceed to import. To learn more about Saved data connections, click here .
3. If you have added a connection already, click the existing connection and start importing data.
Click the Add new link to add a new OneDrive account. You can create as many OneDrive connections as required.
3. Authenticate your OneDrive account. You will need to authorize DataPrep to access your files when you do this for the first time.
Note: If you have authenticated the same Microsoft account for OneDrive and SharePoint, logging out from SharePoint will also log you out from OneDrive, as both services are linked to the same Microsoft account. Please make sure you have logged into the corresponding Microsoft account.
The connection configuration will be saved for importing from the OneDrive in the future. Credentials are securely encrypted and stored.
4. Select the files you want to import and click the Import button. You can also select files from the Shared with me tab. You can also use the Advanced selection option to import files that match a specific pattern. Click here to know more.

5. If it is an HTML, XLS, or XLSX file, you can click the Preview option to view a sample of the data.
6. If the file is password protected, enter the password, and click the
right arrow and then click Import.
Note : Supported formats are CSV, TSV, JSON, XML, TXT , XLS, and XLSX. You can also import files in zipped format. Note : In the case of Zip files, only one file is supported. Make sure you have only one file compressed or zipped within the .Zip file.

7. Once you have completed importing data, Pipeline builder page opens and you can start applying transforms. You can also right-click the stage and choose the Prepare data option and prepare your data in the DataPrep Studio page. Click here to know more about the transforms.
8. Once you are done creating your data flow and applying necessary transforms in your stages, you can right-click a stage and
add a destination to complete your data flow.
Note: After adding a destination to the pipeline, you can try executing your pipeline using a manual run at first. Once you make sure manual run works, you can then set up schedule to automate the pipeline. Learn about the different types of runs here.Advanced selection
To import files using Advanced selection,
1. Click the Advanced selection link.
Advanced selection helps you perform dynamic file selection based on regex. This can be used for getting new or incremental data from your OneDrive account. The newly added or modified file that matches the file pattern after the previous sync will be taken from your OneDrive account. Click here to know more about incremental fetch in cloud storages.
Important: Advanced selection is used not only for incremental fetch. You can also use this option for bulk import of files based on the file pattern.
Note : Supported formats are CSV, TSV, JSON, XML, TXT , XLS, and XLSX. You can also import files in zipped format. Note : In the case of Zip files, only one file is supported. Make sure you have only one file compressed or zipped within the .Zip file.2. Provide the below details:
Note: The file pattern match is a simple regex type match. For example, to fetch files with file names such as Sales_2022.csv , Sales_2023.csv , Sales_2024.csv , you can input the pattern Sales_.*
Similarly to fetch files such as PublicData1.csv , PublicData2.csv , PublicData3.csv, use Public.*
If you want to import a single file, then specify the pattern using the exact file name.
Eg: leads_jan_2022.*
File password : Enter the password if the file is password protected.
Merge files and import - This will merge all the files that match the pattern specified and import them as a single dataset.
You can use this option to merge files together during the import itself, without having to perform unions post import.
Info: This option can merge a maximum of only 5 files at a time.
Note: If this checkbox is unchecked then, only 1 file will be fetched at a time.
Eg. If your OneDrive account has 10 files, the first 5 will be merged into one dataset and imported. During the next reload, the remaining 5 files will be merged and imported.
Similarly, if your OneDrive account has 8 files, the first 5 will be merged and fetched first, followed by the next 3.
File type : Choose the required file format. The available formats are CSV, TSV, JSON, XLS, XLSX, XML, and TXT.
Sheet pattern : This option is available for the XLS and XLSX formats only. The pattern used to match the sheet names in the file. This supports regex type matching. You can also use the pattern ".*" to match any sheet in the file.
The sheet pattern match is also a simple regex-based match. For example, to fetch sheets with names such as Sales_2022, Sales_2023, Sales_2024, you can input the pattern Sales_.*
Similarly, to fetch sheets such as PublicData1, PublicData2, PublicData3, use Public.*
If you want to import a single sheet, then specify the pattern using the exact sheet name.
Eg: Leads_Jan_2022.*
Sheet password : This option is available for XLS and XLSX formats only. Enter the password if the sheet is password protected.
Merge sheets and import : This will merge all the sheets that match the pattern specified and import them as a single dataset.
You can use this option to merge sheets together during the import itself, without having to perform unions post import.
3. Click the Import button.
SEE ALSO
How to add a new pipeline?
How to import data from cloud databases?
How to import data from saved data connections?
How to schedule a pipeline?
What other cloud storage options are available in Zoho DataPrep?
How to export data to OneDrive?