Action: Store file

Action: Store file

Store file action allows to get the file (or the file content) based on configured file source and store it in a specified SharePoint library. 

Example of Store file action configuration with HTTP trigger action

Ein Bild, das Text, Screenshot, Zahl, Software enthält.

KI-generierte Inhalte können fehlerhaft sein.

For more information about Action Builder read Action Builder introduction article.

To configure the action Store file additional properties should be specified:

Configuration

Property

Required

Type

Description

Source type

yes

Choice

Select file source type from where you want to get the file:

  • File path
  • Base64
  • Content

File path

yes

String

Specify the path to the file. It can be server relative URL, full URL, expression evaluated URL or it can be output from HTTP Request trigger action: [[@Actions.HTTP_Trigger.RequestFiles]][0].Path
NOTE: Path to the file should from the current site.

Base64 value

yes

String

Specify Base64 value or expression evaluated as base64 value

File content

yes

String

Specify content for the file

Target library

yes

Choice

Specify a library where a file will be stored. It is possible to select the library from the current site. 

Folder

no

String

Library relative URL. If you want to store file to a new folder you can specify it in this property.

File name

yes

String

If the file source is a File path:

Specify a file name with an extension. If you don’t specify an extension, the action keeps the original file’s extension.

If the file source is Base64 content:

Specify a file name with an extension. Otherwise, the extension is detected from the Base64 data.

If the file source is Content:

Specify a file name with an extension (for example, .txt, .json, .xml, or other text-based formats). If no extension is provided, the .txt extension will be used. 

If already exist

yes

Choice

If the file with the same name already exists you have several option to specify:
- Overwrite. It will overwrite to exiting document in the target document library.
- Rename and keep both. It will rename document you want to copy and keep existing one.
- Fail. Action will fail with an error: A file or folder with the name [[FileName]] already exists at the destination.

Availability

Modern Forms

List Actions

Scheduled/Triggered Actions

-

-

 

Output

Output parameter

Type

Description

ItemID

Number

Returns the Id of the added item as output parameter and can be used in subsequent actions.

FileName

String

Returns the file name

Url

String

Absolute URL to the created folder. Starts with 'https://'

ServerRelativeUrl

String

Server relative path to the created folder. Starts with '/'

LibraryRelativeUrl

String

Library relative path to the created folder. Starts with folder name



Ein Bild, das Text, Screenshot, Software, Computersymbol enthält.

KI-generierte Inhalte können fehlerhaft sein.

 

 



    • Related Articles

    • Action: Extract zip file

      Extract zip file action allows extract files from the archive and save those files to the specified library/folder. Example of the action configuration on the current site For more information about Action Builder read Action Builder introduction ...
    • Action: Convert to PDF

      Convert to PDF action allows you to convert the specified file to PDF. We support converting a wide variety of files: Microsoft Word documents (DOC, DOCX), Excel spreadsheets (XLS, XLSX) and PowerPoint files (PPT, PPTX). Example of Convert PDF action ...
    • Action: Generate QR Code

      Generate QR Code action allows to generate QR code for specified text or the URL. The generated QR code can used in different ways, like can be saved to the specified library as .PNG image or inserted directly into the .pdf file using Insert image to ...
    • Action Builder Introduction

      The Teamsware Studio Action Builder is a tool that allows you to specify actions which are executed in consecutive order. You can build powerful workflows triggered from a form button, on form load, from a list view, scheduled or event triggered on a ...
    • Action: Delete meeting

      Delete meeting action will delete online meeting from the calendar in Microsoft Teams and in Outlook as well. It allows to delete both a single meeting and a series of meetings. Example of Delete meeting action configuration on the current site For ...