CreateFile

Estimated reading: 2 minutes 1990 views

This activity helps the user to create a new file in the specified location. We can also create a file in a shared folder, granted we have access to it.

Properties

INPUT

Extn:* “Specify the desired file type by selecting the appropriate extension for creation. From the dropdown, choose one of the following:
Txt: This option generates a Notepad document. It is the default selection.
Xlsx: This option enables the creation of an Excel spreadsheet document.
Docx: This option generates a Microsoft Word document compatible with versions from 2007 onwards.
Doc: This option enables the creation of a Word document for versions before 2007.”

FileName:Specify the name of the file to be created. It accepts the “String” datatype. You have the option to either hardcode the values in the “String” variable or pass the values as “String” datatype. This accepts only the “String” datatype.

FilePath:* Indicates to provide the path where the folder needs to be created. You have the option to either hardcode the values in the “String” variable or pass the values as “String” datatype. This accepts only the “String” datatype.

OverWright: When this parameter is checked, it allows you to overwrite the file. If the parameter is unchecked, the file will not be overwritten. By default, this parameter is unchecked.

MISC

DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting.

SkipOnError: Specify the “Boolean” value as “True” or “False.”
True: Continue executing the workflow regardless of any errors thrown.
False: Halt the workflow if it encounters any errors.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.

Version: It indicates the version of the feature being used.

OUTPUT

Result: It provides the ability to view the execution status of the activity. It returns values in “Boolean.”
True: Indicates that the activity has been executed successfully without any errors.
False: Indicates that the activity has been unsuccessful due to an unexpected error being thrown.

Represents mandatory fields to execute the workflow.

Share this Doc

CreateFile

Or copy link

CONTENTS