Local variables allow storing and using information across multiple statements in action logic. Usage (or scope) of local variable is within the given Action.
For example, consider the following statements in the Account Creation action, where you need to fill email address with a randomly generated email
Here, "email address" is a local variable, which captures the random email that the first statement generates. Subsequently, you use the same email to type in the email address text field. You do not need this information anywhere outside of this Action, so it is best to use a local variable. If this information was to be shared outside of this Action, you would use Action Output Parameter.
Remember following points about local variables:
- Created as part of internal Action logic.
- Useful to process information between multiple statements in the logic of a given Action