Skip to content

One Drive Writer

⚠️ DEPRECATION WARNING

This component is deprecated and will be removed in a future version of Nappai. Please migrate to the recommended alternative components.

The One Drive Writer component lets you put files into your Microsoft OneDrive account straight from the Nappai dashboard. You can either pick an existing file from your computer or type the contents of a new text file, give it a name, and choose the folder in OneDrive where it should go. After the upload finishes, the component returns the full OneDrive path to the file so you can use that link later in your workflow.

How it Works

When you run the component, Nappai first checks that you have a valid Microsoft OneDrive credential set up. It then uses the OneDrive API to either:

  1. Upload an existing file – the file you selected on your computer is sent to OneDrive and stored in the folder you chose.
  2. Create a new text file – the text you typed into the “File content” field is sent as a new file with the name you provided, and it is saved in the chosen folder.

The component returns the OneDrive URL of the file it just created or uploaded.

Inputs

Before using the component, make sure you have a Microsoft One Drive credential configured in Nappai’s Credentials section. Then select that credential in the component’s “Credential” field.

Input Fields

  • File content: The text you want to save as a new file in OneDrive.
  • Select folder to save files: Pick the folder in OneDrive where the file should be stored.
  • Upload file or select file: Choose a file from your computer to upload.
  • File Name: The name you want to give the file when it is saved in OneDrive. This field is required.

Outputs

  • Path to File: A text string containing the full OneDrive path to the file that was uploaded or created. You can use this output to reference the file later in your workflow.

Usage Example

  1. Configure the credential

    • Go to CredentialsAdd CredentialMicrosoft One Drive.
    • Enter your Client ID, Client Secret, Tenant ID, and select the appropriate Microsoft onedrive access level.
    • Save the credential.
  2. Add the One Drive Writer component to your workflow.

    • In the component’s “Credential” field, choose the credential you just created.
    • If you want to upload an existing file, click Upload file or select file and pick the file.
    • If you want to create a new text file, leave the file selector empty, type the text into File content, and provide a File Name.
    • Choose the destination folder with Select folder to save files.
    • Run the workflow.
    • The component will output the OneDrive path in Path to File.
  • MicrosoftOneDriveLoader – Reads files from OneDrive into Nappai.
  • MicrosoftOneDriveLister – Lists files and folders in a OneDrive account.

Tips and Best Practices

  • Check file types – The component only accepts text files (e.g., .txt, .md).
  • Use descriptive file names – This makes it easier to find the file later in OneDrive.
  • Verify folder existence – If the folder you select doesn’t exist, the upload will fail.
  • Keep credentials secure – Never share your Client Secret or Tenant ID outside of Nappai.

Security Considerations

  • Credentials are stored encrypted in Nappai’s credential store.
  • The component uses OAuth tokens that expire; Nappai automatically refreshes them when needed.
  • Only the user who owns the OneDrive account can access the files uploaded by this component.