Variables

Variables, an advanced feature of Fake, allow you to store a value once which can then be accessed multiple times in a Workflow. Variables can be set in two ways:

  1. Using the Set Value of Variable Action found in the Action Library.

  2. Using JavaScript by calling window.fake.set('myVarName', 'some value') in a Do JavaScript Action.

Once you have set a Variable's value, it may be accessed in one of two ways:

  1. Typing ${myVarName} into any Action's text field.

  2. Calling window.fake.get('myVarName') in a Do JavaScript Action.