# Actions in Langstack applications

<table><thead><tr><th>Action name</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td>Add item to List</td><td>Basic</td><td>Adds a single item to the list variable. The item added must be of the same type as the list</td></tr><tr><td>API Respond</td><td>Basic</td><td>Send the API response. Actions defined or placed after this action are not executed.</td></tr><tr><td>Calculate</td><td>Basic</td><td>Add, Subtract, Multiply, Divide, or Modulate arithmetic operations. The remainder of the division is the mod operation.</td></tr><tr><td>Condition action</td><td>Container</td><td>Conditionally executes Actions depending on the result of the criteria which to true or false.</td></tr><tr><td>Create Entity record</td><td>Basic</td><td>Creates a new record for the Target Entity and its related entities. If the user wants to add a target entity, go to the [Target Entities] tab and add it before using this action.</td></tr><tr><td>Decrypt</td><td>Basic</td><td>Using the secret key provided, decrypts a string that was encrypted by the Encrypt action.</td></tr><tr><td>Delete Entity record on match key</td><td>Basic</td><td>Records that match any of the defined match keys are deleted from the Target Entity. Target Entity must be added before this action can be performed.</td></tr><tr><td>Delete Entity record on primary key</td><td>Basic</td><td>Deletes a record from the Target Entity that matches the primary key. Prior to performing this action, the Target Entity should be defined.</td></tr><tr><td>Display on test console</td><td>Basic</td><td>Displays a text on the Test Console when the user is testing; this action is ignored during normal execution.</td></tr><tr><td>Encrypt</td><td>Basic</td><td>A string value is encrypted with the secret key provided.</td></tr><tr><td>Entity attribute lookup</td><td>Basic</td><td>Records are searched for the most recent record that matches the selected field value.</td></tr><tr><td>Entity attribute lookup list</td><td>Basic</td><td>Looks for records matching the selected field value in Entity records.</td></tr><tr><td>Exit</td><td>Basic</td><td>Exits and terminates the execution of any further actions.</td></tr><tr><td>Exit Validation</td><td>Basic</td><td>Exits the Validation Steps either with true or false triggering the execution of either On Validation step success or On Validation step fail function.</td></tr><tr><td>Filter List</td><td>Basic</td><td>This function returns the list of records that match the filter criteria, this action works for entities and all other types of lists.</td></tr><tr><td>Find first List item</td><td>Basic</td><td>The first list item that matches the defined criteria is returned. If no match is found, the target variable becomes unset.</td></tr><tr><td>Find first List item index</td><td>Basic</td><td>Returns the index of the first time that matches the specified criteria. The target variable is updated with -1 if no match is found.</td></tr><tr><td>Get List item</td><td>Basic</td><td>Gets an item from the List based on its index position, the first item in the list at the index 0 (zero)</td></tr><tr><td>Group Action</td><td>Container</td><td>Arrange actions by combining them into a group, so users can group the action to their relative purpose in the logic, this can help improve the readability of logic intended by the user. No tabs available for this Action.</td></tr><tr><td>Launch App</td><td>Basic</td><td>Launches the selected ETL pipeline or Process that is set to run immediately and optionally pass a StartupParameters.</td></tr><tr><td>Load Entity record</td><td>Basic</td><td>Finds the most recent entity record that matches any of the defined match keys.</td></tr><tr><td>Load Entity record list</td><td>Basic</td><td>All entity records that match any of the defined match keys are searched.</td></tr><tr><td>Remove List item</td><td>Basic</td><td>Removing an item from a list based on its position index and returning it to a target variable. List entries begin at zero (zero) index. The index value exceeding the list size is ignored, and the target variable is unset.</td></tr><tr><td>REST call</td><td>Basic</td><td>REST web calls are performed with the result stored in the JXPHttpRestResponse variable.</td></tr><tr><td>Set validation response</td><td>Basic</td><td>Returns the Validation response variable. Actions after this action are not executed. Usually this Action is placed in the On Exit function.</td></tr><tr><td>Single operation</td><td>Basic</td><td>Calls the function of a variable.</td></tr><tr><td>Split string</td><td>Basic</td><td>This function splits a string into a list based on the delimiter.</td></tr><tr><td>String replace</td><td>Basic</td><td>Replaces all occurrences of the string in the source and stores the result in the target.</td></tr><tr><td>Traverse Entity</td><td>Container</td><td>This function executes a paginated traversal of entity records in accordance with the order by, limit, skip and criteria. This action performs actions on each record of an entity. For each item, the local variables of the Traverse entity are reset.</td></tr><tr><td>Traverse List</td><td>Container</td><td>Executes actions on each item in the list. All local variables of the Traverse List are reset for each item.</td></tr><tr><td>Trigger Flow</td><td>Basic</td><td>Triggers a flow for a saved Entity record, optionally with an associated value in JSON.</td></tr><tr><td>Trigger Flow component Event</td><td>Basic</td><td>Triggers an existing Flow component event for an already saved Entity record, optionally with an associated JSON value. This Action can be used only for Entity records executed by the Flow component. A JXPFlowappActivity must be provided to the action when the Flow component executes the entity records.</td></tr><tr><td>Unset value</td><td>Basic</td><td>Clears the variable value and sets it to unset.</td></tr><tr><td>Update Entity fields from json</td><td>Basic</td><td>Updates entity fields of a variable of type Entity based on the matching fields in the selected JSON. Entity fields not found in the selected JSON will not be updated unless the Unset fields checkbox is selected. In the event that the matching JSON field type does not match the entity field's type, the entity field will be unset.</td></tr><tr><td>Update Entity record on match key</td><td>Basic</td><td>Updates a record in the Target Entity that matches any of the match keys defined. In order to perform this action, the Target Entity must be defined.</td></tr><tr><td>Update Entity record on primary key</td><td>Basic</td><td>Updates the Target Entity or related entities based on the primary key. This action should be performed after defining the Target Entity.</td></tr><tr><td>Update List Item</td><td>Basic</td><td>This method updates an item by its index position in the list.</td></tr><tr><td>Update variable</td><td>Basic</td><td>Updates any field or variable.</td></tr><tr><td>Wait</td><td>Basic</td><td>The execution will halt in milliseconds from the integer value provided, which should not exceed 360000.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.langstack.com/welcome/get-started/learn-langstack/basics-and-essentials/what-is-an-action/actions-in-langstack-applications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
