SharePoint Data Target
Overview
DataBlend supports uploading files to SharePoint, including into subfolders. Folders that don't exist yet can be created automatically during the upload.
Configuration

| Setting | Required/ Optional | Description |
| Name | Required | The filename to be created within SharePoint. |
| Content | Required | The actual information contained within the file. |
| Query | Required | Select the query that will generate the data for this target. See the relevant target type documentation for additional details on what query columns are required for your target. |
| Query Mode | Required | Select New unless you have a reason to select Latest or Specific. |
| Credential | Required | Select a SharePoint Credential from the list. |
| Custom Delimiter | Optional | Any single character, defaults to comma. |
| Disable Header | Optional | Toggle on to exclude uploading headers. |
| Split File | Optional | Unable to "Send As File" if toggled on. Splits the query results into separate files using the FileName column. Each row's FileName value can include a folder path (for example, 2026/October/report.csv). See Folder Paths. |
| Action | Required | Select Upload Files from the drop-down menu. |
| Site | Optional | Select from the available user sites in the drop-down menu. |
| Drive | Optional | Select from the available user drives in the drop-down menu. |
| Folder | Optional | Select the folder in the drive to upload files into. Folder paths in file names are created relative to this folder. |
| Send as File | Optional | Enable or disable the toggle to send the target data as a file. Use this to send the contents of the query as a CSV file. Toggle should be off for sending PDF files. |
| File Name | Required when Send as File is on |
The name of the file to create in SharePoint. Can include a folder path, for example |
| Create Folders If Missing | Optional | On by default. When on, DataBlend creates any folders in the upload path that don't already exist in SharePoint. When off, the upload fails if any folder in the path doesn't exist, and no file is written. |
To learn more about SharePoint API requirements, please visit https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints.
Folder Paths
You can upload files into subfolders by including a folder path in the file name, for example 2026/October/report.csv. Paths are relative to the Drive and Folder selected on the data target.
- Send as File: include the path in the File Name field.
- Split File: include the path in the
FileNamecolumn for each row. Backslashes are converted to forward slashes. - Send as File and Split File both off (base64 records): use the
filePathcolumn for the folder and thenamecolumn for the file.
Leading or doubled slashes in a path are ignored.
When Create Folders If Missing is on, any folder in the path that doesn't exist is created during the upload. When it is off, every folder in the path must already exist. Data targets created before this setting was added behave as if it is turned on.
Naming Rules
Folder and file names can't contain " * : < > ? |, can't end with a period or a space, and can't be . or ... DataBlend checks every name before uploading. If any name is invalid, nothing is uploaded and the error lists the invalid names.
Advanced
History Retention
History Retention (Days) allows users to decide how long they want the information from their data targets to be stored. This field is optional.
Timeout (seconds)
The Timeout section allows users to determine if they would like to timeout collections taking longer than a set number of seconds to collect data.
Skip If No Records Found
The “Skip if No Records Found” button is used to eliminate sending information to Data Targets unnecessarily. Simply enable the “Skip if No Records Found” toggle. The use of this toggle is optional.
Agent
The Agent drop-down for users to select any agent they have established. This is optional.
Run As
Run As allows users to select from a drop-down list of users to run the Workflow. This is optional. Please note that Run As is only available to Admin users. If a user is set as the Run As and then demoted to a Member, the user which demoted the Run As user will instead be set as the Run As.
Troubleshooting
| Message | Cause | Fix |
|---|---|---|
| '[file]' was not uploaded: the folder '[path]' does not exist and Create Folders If Missing is off. | A folder in the upload path doesn't exist, and Create Folders If Missing is turned off. | Turn on Create Folders If Missing, or create the folder in SharePoint. |
| '[file]' was not uploaded: '[path]' is a file, and a folder with that name is needed to hold it. | An existing file has the same name as a folder in the upload path. | Rename or move the existing file, or change the folder path. |
| No file was uploaded. … is not a valid SharePoint name (…) | A folder or file name breaks SharePoint's naming rules. | Correct the name in the File Name field or the query column. See Naming Rules. |