Secure Type Text

Estimated reading: 5 minutes

The Secure Type Text activity securely enters sensitive information, such as passwords, PINs, and credentials, into SAP input fields. The activity uses the SAP element captured through Spy to identify the target field and enters the specified Secure String value during workflow execution without exposing it in logs, screenshots, or error messages.

Note: The Secure Type Text activity must be used within an SAP Logon scope and uses the active SAP session established by the parent activity.

Activity Canvas

The activity canvas allows you to identify the target SAP input field and configure the secure text entry operation.

Select Element: Allows you to identify and capture the target SAP input field using Spy. The captured element information is used to locate the field during execution.

Secure Text: Specifies the sensitive text to enter into the selected SAP field as a SecureString variable or expression. Plain-text hardcoded strings are not accepted directly in this field to maintain credential security.

Using SecureString Variables in the Secure Text Field

The Secure Text field accepts only SecureString values. You can provide the value using a variable, argument, or VB.NET expression that returns a System.Security.SecureString object.

Example:

1. Create or retrieve a SecureString variable (for example, UserPassword) using a credential vault activity.
2. In the Secure Text field, reference the variable using the Designer’s supported syntax:  {UserPassword}
3. Execute the workflow.

During execution, the activity securely enters the password into the selected SAP field without exposing the plain-text value in logs.

Note: The value provided in the Secure Text field must be a SecureString. Standard string values are not supported

Properties

Execution

Delay After: Specifies the delay, in milliseconds, after the secure text entry operation completes (default: 300).

Delay Before: Specifies the delay, in milliseconds, before the secure text entry operation begins (default: 200).

Offset X: Specifies the horizontal offset from the center of the selected element (default: 0). Positive values move the interaction position to the right, while negative values move it to the left.

Offset Y: Specifies the vertical offset from the center of the selected element (default: 0). Positive values move the interaction position downward, while negative values move it upward.

Use Anchor: Determines whether an anchor is used to help identify the target SAP element (default: True / checked).
True (Checked): Uses the configured anchor to help identify the target element.
False (Unchecked): Identifies the target element without using an anchor.

Wait Time: Specifies the maximum time, in milliseconds, to wait for the target SAP element to become available before timing out (default: 30000).

Input

Press Enter: Determines whether an Enter keystroke is sent after the text entry operation completes (default: False / unchecked).
True (Checked): Sends an Enter keystroke after entering the secure text.
False (Unchecked): Does not send an Enter keystroke after entering the secure text.

Secure Text: Specifies the sensitive text to enter into the selected SAP field. Provide the value as a SecureString variable, argument, or expression.

MISC

DisplayName: Displays the name of the activity.

SkipOnError: Specifies whether workflow execution continues when the activity encounters an error (default: False).
True: Continues workflow execution when an error occurs.
False: Stops workflow execution when an error occurs.
None: Uses the default value, False.

Version: Displays the current version of the activity.

Output

Result: Returns a Boolean value indicating the activity’s execution status.
True: The activity executed successfully.
False: The activity failed due to an unexpected error.

How It Works

1. Uses the active SAP session established by the parent SAP Logon activity.
2. Locates the target SAP input field using the captured element information (applying Use Anchor, Offset X, and Offset Y settings if configured).
3. Waits for the target element to become available, subject to the configured Wait Time.
4. Securely reads the SecureString value in memory and enters it into the target field without exposing the value in execution logs, screenshots, or trace outputs.
5. Sends an Enter keystroke if Press Enter is enabled.
6. Clears sensitive data from memory and stores the operation status in the Result property.

Security & Exception Handling

Sensitive information entered through the activity is not exposed in execution logs, audit trails, screenshots, or error messages.

The activity may fail if:

1. The target SAP field cannot be identified.
2. The SAP session is unavailable or disconnected.
3. The target field is read-only or does not support text entry.
4. The target field does not become available within the configured Wait Time.
5. The Secure Text value is null, invalid, or not a valid SecureString.
6. An error occurs while entering the secure text.

Note: Errors are handled according to the activity’s error-handling configuration, including the SkipOnError setting. Sensitive values are masked in error messages.

Example

A workflow needs to log into an SAP environment by entering a confidential user password into the SAP login screen.

1. Place the SecureTypeText activity inside an SAP Logon scope.
2. Use Select Element (Spy) to capture the Password input field on the SAP login screen.
3. Configure Secure Text with a SecureString variable containing the user’s password (e.g., UserPassword).
4. Enable Press Enter if the SAP login screen requires Enter to submit the credentials.
5. Execute the workflow.

The activity locates the password field, securely enters the password without exposing it in logs or screenshots, and submits the login request if Press Enter is enabled.

Share this Doc

Secure Type Text

Or copy link

CONTENTS
Robility Chatbot
Robility Assistant
Online