Using the SharePoint Upload file action - Use the Upload file action to upload a file to a folder in your SharePoint site. You must specify site details, folder path, file name, file content, and session details in the action.

Automation 360

Use the Upload file action to upload a file to a folder in your SharePoint site. You must specify site details, folder path, file name, file content, and session details in the action.

Before you begin

Ensure that you are authenticated before initiating any SharePoint action. For more details, see SharePoint Authenticate action.
Note: The maximum file size allowed for upload is 1 GB.

Procedure

  1. From the Actions pane, select SharePoint > Folder and file > Upload file and place it in the canvas.

    Screenshot of the settings panel of SharePoint Upload file action
  2. In the Site field, select one of the following options:
    • Default site: The site name used during authentication is considered the default site.
    • Other site: If you want to choose a different site, specify the different site name.
  3. In the Folder path field, specify the main Document Library folder name followed by the parent folder.
  4. In the File name field, specify the name of the file that must be displayed in SharePoint. You can provide the file name with or without an extension.
  5. In the File content field, select one of the following options:
    • Control room file: Choose a file that is available in the Control Room.
    • Desktop file: Browse and select a file from your local system.
    • Variable: Insert a variable that contains the file path.

      You can also enter the file stream variable generated using the Assign file action.

  6. In the Session field, select one of the following options:
    • Session name: The name you provided for the session during authentication.
    • Variable: Select a variable which contains the session name.
  7. In the File path field, specify a variable for the file path.
    You can either select an existing variable from the drop-down to store the file path details or use the Create variable option to create a new variable to store the SharePoint file path details. The file path is mapped in the following format: /sites/SiteName/Shared Documents/FolderName/FileName.Extension

Results

The Upload file action uploads the specified file to the folder specified in the action.