Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jun 25, 2018 16:35

By Allana Miller

Parameter order is important when using execute script and user functions

 Execute Script

When using the executeScript command:

  • Parameters must be entered be in the same order as they appear in the subscript or the script will fail.
  • Parameters in the subscript must be defined as run-time

    Using the Execute Script Command

    Enter the parameters in the same order as they appear in the subscript. Only the parameters that are runtime are passed to the main script.



    Recommended: Drag the desired subscript from the MobileCloud repository directly into the main script. The system will insert the script parameters automatically in the right order.

    The parameters in the subscript must be defined as run-time to pass into the main script.


    Dragging a script into another script



    Subscript
    Only the website variable is defined as runtime and will be passed into the main script.


Using String Encoder (Secured String) with Execute Script Command
If a runtime parameter variable in the subscript is defined as a Secured String type, then the variable parameter in the main script MUST be defined as Secured String.

If a runtime parameter variable in the subscript is defined as a String type, then the parameter variable in the main script can be defined as string or Secured String.

User Function

When using a  user function, the parameters of the subscripts must be in the exact same order as each other or the script will fail.