Skip to content

Rich Text File Handle Function: RTFHANDLE

The Rich Text File Handle function retrieves text from an RTF (Rich Text Format) file based on a specified key. This function is useful for extracting specific content from structured RTF documents.

Example: You have an RTF file named Document.rtf and need to extract text associated with a specific key, such as Title.

Steps to Configure

  1. Add a new step.
  2. Select Set a Variable Value from the Action dropdown.
  3. Enter a variable name in the Element Key field (e.g., ExtractedText). This variable will store the retrieved text.
  4. Click on Form, select Functions, and choose RTFHANDLE from the dropdown.
  5. In the Action drop-down, select getValue and provide the following parameters:
    • FPath: Enter the full path of the RTF file (e.g., C:\Documents\Document.rtf).
    • Key: Specify the key to extract text from (e.g., Title).
  6. Click Save.
scrn-rich-text-file-handle-tabular-view
Tabular View
scrn-rich-text-file-handle-card-view
Card View

Outcome on Execution:

  • The command retrieves the text associated with the specified key from the given RTF file.
  • The extracted text is stored in the variable defined in the Element Key field.
  • This variable can be referenced in subsequent steps of the automation process using the syntax ${VariableName} (e.g., ${ExtractedText}).

Back To Top