4Jawaly Actions

4Jawaly utility actions and helpers

Generate Random Code

AI-generated

Overview

This node provides various utility actions including generating random codes of different types and lengths. Specifically, the 'Generate Random Code' operation allows users to create random strings based on selected character sets such as numeric, alphanumeric, alphabetic, uppercase, or lowercase. This is useful for generating verification codes, passwords, or unique identifiers in automation workflows.

Use Case Examples

  1. Generate a 6-digit numeric code for user verification.
  2. Create an 8-character alphanumeric code for coupon codes.
  3. Produce a 10-character uppercase code for product keys.

Properties

Name Meaning
Code Type Specifies the type of characters to include in the generated code, such as numeric, alphanumeric, alphabetic, uppercase, or lowercase.
Code Length Defines the length of the generated code in number of characters.

Output

JSON

  • success - Indicates if the code generation was successful.
  • operation - The operation performed, here it is 'generateRandomCode'.
  • code - The generated random code string.
  • code_type - The type of code generated (numeric, alphanumeric, etc).
  • code_length - The length of the generated code.
  • characters_used - The set of characters used to generate the code.

Troubleshooting

  • Ensure 'Code Length' is greater than 0; otherwise, the node throws an error.
  • If an unsupported 'Code Type' is selected, the node defaults to numeric characters.
  • The node requires valid input parameters; missing or empty required fields cause errors.

Discussion