Last updated: Jun 25, 2018 16:35
By Allana Miller
Parameter order is important when using execute script and user functions
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
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
Only the website variable is defined as runtime and will be passed into the main script.
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.
When using a, the parameters of the subscripts must be in the exact same order as each other or the script will fail.