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.