Customize

Generate Random String

Summary

Generate a string with a random sequence of characters.

How to use

To set the generated string to another field, enter the target field into the parameter “Target Field (Optional)”.

Use formulas when using the result for other actions without setting it immediately.

The generated string will be set as a result of the action. To access the conversion result, use a formula to reference this action in other actions.

For example, if the action of “Generate Random String” is the first action, you can set the value in the parameter “Set Field Value” as follows:

=$1

then you can retrieve the result.

Parameters

Set Character Type, Number of Characters, and Target Field (Optional).

Character Type

You can choose between “Alphanumeric” and “Alphanumeric and Symbols.”

When “Alphanumeric” is selected, the following characters are used:

abcdefghijkmnprstuvwxyzABCDEFGHJKLMNPRSTUVWXYZ2345678

When “Alphanumeric and Symbols” is selected, the following symbols are added to the above characters.

!#$%&+-=?@^_

As can be seen from the above, not all characters are used. It is designed not to include characters that may be confused with others when viewed (such as “1” and “l”).

Number of Characters

Enter the number of characters to be generated in the string.

A maximum of 1000 characters is allowed. Specifying a value of 1001 or more will result in a runtime error.

Target Field (Optional)

Use this parameter to set the results to another field. You can omit this parameter if you do not set the results directly in the field but use it in another action.

This parameter accepts the following field types:

  • Text
  • Text area
  • Rich text

If you select a field inside a table, all rows of that table will be processed. For exceptions: See (*1)

*1: If you set a Condition that only applies to some table rows (such as the Condition “When Fields Value Changed”), the value will be set only for those affected by that Condition.

Compatibility with krewSheet

This action is designed to work seamlessly with krewSheet.

However, the following restrictions apply to the parameter “Target Field (Optional)”:

  • This parameter cannot be set to a field obtained by a Lookup field.
  • The following field types can be set when a record is saved (e.g. when you select the Condition “Before Record Saved Excluding Deleted"): If you want to gain more technical knowledge, refer to the krewSheet documentation .
    • Fields not included in the krewSheet view’s columns
    • Fields set to read-only in krewSheet
    • Rich text field