The ListInsert action is a System Action that inserts an element in a specific position of a list. The input list is effectively modified but the current element of this list is not changed.
Animation Effect: the animation effect applied to the widget when refreshed using Ajax.
Text Type. Optional.
The possible values are: None, Highlight or Fade.
List: the list to add the element to.
List Type. Mandatory.
Element: the element to insert in the list.
List element type. Mandatory.
Position: The position where the element is inserted. In Service Studio, position values start with zero. If the 'Position' parameter's value is less than or equal to 0, the element is inserted at the beginning. If the 'Position' value is greater than the size of the list, the element is inserted at the end.
Integer Type. Mandatory.
You cannot insert an element into a List inside a For Each loop for that List. The following runtime error is raised:
"Insert is not a valid operation inside a StartIteration/EndIteration block."
List Data Type | Overview of System Actions and Functions