Skip to main content

Copy File (SharePoint)

The Copy File (SharePoint) node uploads an incoming file to a SharePoint document library through Microsoft Graph and returns the uploaded file URL.

Overview

Use this node to publish generated files to a SharePoint site and document library. The node uses browser-backed selectors to choose the site and library from the selected Microsoft Graph service, then uploads the file to a configured library path.

Purpose

  • Upload a NodeFile to a SharePoint document library.
  • Optionally replace an existing file with the same name.
  • Optionally set SharePoint list/library custom column values after upload.
  • Return a launchable web URL for the uploaded file.

Configuration

FieldRequiredDescription
Microsoft Graph ServiceYesAuthenticated Graph connection. See Microsoft Graph Service.
Site NameYesSharePoint site selected from the service. Changing the site clears the selected library.
Library NameYesDocument library/drive selected from the chosen site.
PathYesFolder path inside the library. The node evaluates expressions in this field at runtime.
Override fileNoWhen enabled, Graph conflict behavior is set to replace existing files.
Attributes MapperNoOptional mapping for custom SharePoint columns. Values are evaluated as expressions before being written to the uploaded item.

Inputs

InputData TypeInput TypeDescription
NodeFileNodeFileSingleThe file to upload.

Outputs

OutputData TypeCollectionDescription
WebUrlWebUrlFalseA launchable URL pointing to the uploaded SharePoint file. The output title is set to the uploaded item name.

Processing Logic

  • Evaluates the configured Path.
  • Opens the selected Microsoft Graph service.
  • Uploads the input file to root:/<path>/<computed file name>: in the selected document library.
  • If Override file is enabled, sends Graph conflict behavior replace.
  • If the upload returns an item ID, evaluates and writes configured custom column values to the uploaded item's list fields.
  • Emits a WebUrl output using the uploaded item's SharePoint web URL.

Examples

Upload a monthly report into a library folder:

/Reports/${REPORT_YEAR}/${REPORT_MONTH}

Set a custom column after upload:

  • Department: ${DEPARTMENT_CODE}
  • ReportDate: ${REPORT_DATE}

Notes / Limitations

  • The Microsoft Graph service must have permission to access the selected site, library, upload files, and update list item fields when attributes are mapped.
  • The node handles one input file per execution.
  • Missing intermediate folders depend on Microsoft Graph upload-session behavior for the configured path and tenant settings.
  • When Override file is disabled, existing-file conflicts are handled by Graph's default conflict behavior and can fail the node.