This action is used to load a text file that can be loaded from a URL or file reference. The string content that represents the HTML is assigned to a property. Some requests for HTML require authentication, so there are optional properties that pass user name and password credentials to a request.
The properties for this action are listed in the following table:
Property | Data Type | Access | Use |
SourceURL | String | In and out | Controls the URL that loads the text file. It can be a Web URL such as http://www.server.com/MyFile.txt or a file-based URL such as C:\Reports\MyFile.txt. We recommend that you use Web-based requests, which increases application portability and simplifies administration. Use forward slashes (/) in Web URLs. A backslash (\) represents an escape character. |
Timeout | Integer | In and out | Controls the amount of time in seconds the action waits for a response from the load request. |
StringContent | String | Out | Contains the content of the loaded text file. If the load attempt fails, it contains an empty string. |
Success | Boolean | Out | Indicates whether the text file load request succeeded or failed. If it failed, errors are displayed in the server trace log. |