Skip to main content

Native Action - Write File

The Write File action is designed for mobile applications, enabling users to create and store files directly on Android and iOS devices. It is commonly used for scenarios like saving logs, exporting data, or generating reports that users can access locally on their devices.

  1. Navigate to Native in your action flow and select the Write File task.

  2. Configure the file properties such as name, content, and location using the available options.

Write File Action
Native Action - Write File

Configuration Overview

Configuration FieldDescription
File NameThe name of the file to be created. You can specify it dynamically using keywords.
File ContentThe content to be written into the file. Supports both static text and dynamic inputs.
Append DataDetermines whether to append new data to an existing file (true) or overwrite it (false).
Content TypeSpecifies the type of file to create, such as text/plain or application/json.
Path for AndroidThe directory on Android where the file will be stored. Use system-defined paths.
Path for iOSThe directory on iOS where the file will be stored. Similar to Android paths.
Write File Configuration
Native Action - Write File Configuration

After configuring the Write File action, the app will create the specified file in the selected directory. Users can access and use this file for various purposes, such as viewing logs or exporting data.