Skip to main content
Skip table of contents

Call a variable from CustomAction component

You can not access data values directly from a Call Sequence component in a CustomAction.

You can:

  • Save the Call Sequence output data to a SetGlobal component

  • Add a Variable to the CustomAction and source it from the Call Sequence output data

SetGlobal component:

Use a SetGlobal component as a child of the Call Sequence component, give it a variable name and set its value to parent.out

To access the global value in your CustomAction:

CODE
page.global.<variable_name> or page.global["<variable_name>"]

Pass Variable to a CustomAction:

You can pass variables to custom actions. When you use a custom action, you can add Variable to the custom action. The variable value can be accessed within the custom action by a :

JS
vars.<variable_name>

Or

JS
vars['<variable_name>']

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.