Writes content to a file.
More...
Inherits IntegrationAction.
|
DataTarget | Source [get, set] |
| Specifies the source of the content to be written.
Example in which the source is a variable: More...
|
|
ActionTextEncoding | TextEncoding [get, set] |
| Specifies the text encoding scheme to use when saving the file. The default value is UnicodeUTF8. More...
|
|
FileActionSaveMethod | SaveMode [get, set] |
| Specifies the action to take when a destination file that has the same name already exists, as follows: More...
|
|
FileTarget | File [get, set] |
| Specifies the path of the destination file to use to save the file to. More...
|
|
int | LockedFileTimeout [get, set] |
| Specifies the amount of time, in milliseconds, to try to open a file that is found to be initially locked by another application. The default value is 30000. More...
|
|
string | PathVariableName [get, set] |
| Specifies the name of the variable to save the destination file path to. More...
|
|
|
Describes the common action properties for Actions and ActionGroups.
|
string | Name [get, set] |
| Specifies the name. This property cannot be empty and must be unique in the YAML script. More...
|
|
string | Description [get, set] |
| Specifies the description. The default value is "". More...
|
|
ActionRunType | RunType [get, set] |
| Runs the action by using one of the following types: More...
|
|
bool | IgnoreErrors [get, set] |
| Specifies whether to ignore errors and continue with the next action. Valid only for Action and ActionGroup. The default value is false. More...
|
|
int | FailureRetries [get, set] |
| Specifies the number of times that the action is retried if it fails. Available only for Action. The default value is 0. More...
|
|
int | RetryInterval [get, set] |
| Specifies the interval, in milliseconds, that elapses when a failed action is retried. Valid only when the value of FailureRetries is greater than 0. Available only for Action. The default value is 10000. More...
|
|
Writes content to a file.
For common action properties, see IntegrationAction.
Example:
Actions:
- WriteFileAction:
Source:
'Today is %CurrentDate%. Time now: %CurrentTime%'
# And more common action properties
...
FileTarget File
Specifies the path of the destination file to use to save the file to.
Definition: WriteFileAction.Properties.cs:108
DataTarget Source
Specifies the source of the content to be written. Example in which the source is a variable:
Definition: WriteFileAction.Properties.cs:82
string PathVariableName
Specifies the name of the variable to save the destination file path to.
Definition: WriteFileAction.Properties.cs:123
ActionTextEncoding TextEncoding
Specifies the text encoding scheme to use when saving the file. The default value is UnicodeUTF8.
Definition: WriteFileAction.Properties.cs:90
string Name
Specifies the name. This property cannot be empty and must be unique in the YAML script.
Definition: IntegrationAction.Properties.cs:87
@ USWesternEurope_1252
US, Western Europe (ANSI, 1252)
◆ Source
Specifies the source of the content to be written.
Example in which the source is a variable:
Example in which the source is a template with variables:
Source:
'Today is %CurrentDate%. Time now: %CurrentTime%'
Example in which the source is a file from the computer or network or from Librarian:
Example in which the source is a cloud file:
◆ TextEncoding
Specifies the text encoding scheme to use when saving the file. The default value is UnicodeUTF8.
◆ SaveMode
FileActionSaveMethod SaveMode |
|
getset |
Specifies the action to take when a destination file that has the same name already exists, as follows:
- SerializedSuffix: Specifies that the file name is made unique by appending a serial number. This is the default setting.
- Timestamp: Specifies that the file name is made unique by appending a timestamp.
- Append: Specifies that the new content is appended to the existing file.
- Overwrite: Specifies that the existing file is replaced with the new file.
- Failed: Specifies that the new content is not saved and an error message is displayed.
◆ File
Specifies the path of the destination file to use to save the file to.
◆ LockedFileTimeout
Specifies the amount of time, in milliseconds, to try to open a file that is found to be initially locked by another application. The default value is 30000.
◆ PathVariableName
Specifies the name of the variable to save the destination file path to.
◆ Name
Specifies the name. This property cannot be empty and must be unique in the YAML script.
◆ Description
Specifies the description. The default value is "".
◆ RunType
Runs the action by using one of the following types:
◆ IgnoreErrors
Specifies whether to ignore errors and continue with the next action. Valid only for Action and ActionGroup. The default value is false.
◆ FailureRetries
Specifies the number of times that the action is retried if it fails. Available only for Action. The default value is 0.
◆ RetryInterval
Specifies the interval, in milliseconds, that elapses when a failed action is retried. Valid only when the value of FailureRetries is greater than 0. Available only for Action. The default value is 10000.
The documentation for this class was generated from the following file:
- WriteFileAction.Properties.cs