Generates a random string using any possible printable character between the specified minimum and maximum sizes and stores it as an AWE variable. This string conforms to the standard for strong passwords. Used to build a strong password.
Declaration
<AMGENERATEPASSWORD MINLENGTH="number" MAXLENGTH="number" RESULTVARIABLE="text [variable name]" />
Example
<AMGENERATEPASSWORD MINLENGTH="7" MAXLENGTH="11" RESULTVARIABLE="VariableName" />
See Also: Authenticate
To set properties of the Generate Password action:
In the Available Actions pane, expand the Security folder and double-click the Create Password action or drag the action into the Steps pane.
In the General tab properties of this action, enter the minimum length of characters that the generated password should contain under the Min length parameter.
Enter the maximum length of characters that the generated password should contain under the Max length parameter.
Under the parameter labeled Populate variable with password, select a pre-existing variable that you want to save the password information to.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog box.
Property |
Type |
Required |
Default |
Markup |
Description |
Min Length |
Number |
Required |
|
MINLENGTH="7" |
Specifies the minimum length of characters that will be used to generate the password. |
Max Length |
Number |
Required |
|
MAXLENGTH="11" |
Specifies the maximum length of characters that will be used to generate the password. |
Populate variable with password |
Text |
Required |
|
RESULTVARIABLE="varname" |
Specifies an existing variable to populate with the newly generated password. |
This action also includes the standard "Error Causes" and "On Error" failure handling options/tabs
More on Error Handling Options
All text fields allow the use of expressions by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, a popup expression builder is available in all these fields by pressing F2.