This Specification Flow Task allows values in a text file to be replaced.
Property Name | Description |
---|---|
Title | Changes the Title (not the name) of the task. |
Text File Name | Full path, including extension, of the file that the text will be written to. This file must be a .txt file |
Find and Replace Values | Pipe-bar (|) delimited string of find and replace values.Use the equals symbol to separate values (e.g FindValue1= ReplaceValue1| FindValue2= ReplaceValue2). Pipe and equal symbols can be escaped with a backslash. |
When this Task is added the properties are static. To be able to build rules on a static property see How To: Change A Static Property To A Dynamic Property.
Property Name | Example Rule | Example Result | Meaning |
---|---|---|---|
Text File Name | "C:\MyDownloads\TextFile.txt" | C:\MyDownloads\TextFile.txt | This is the name and full file path of the Text file that is to have values replaced. |
Find and Replace Values | "QuoteNumber=OrderNumber | CustomerContact=Contact" | QuoteNumber=OrderNumber | CustomerContact=Contact | Will replace each instance of QuoteNumber with OrderNumber and CustomerContact with Contact |
Find and Replace Values (escaping = and | symbols) | "\==Equals | \|=Pipebar" | \==Equals | \|=Pipebar | Will replace each instance of = with Equals and | with Pipebar |
This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.
The status output navigation is as follows:
Success
Success with Warnings
Failed (one of the following occurred).