Ask AI
Skip to main content

Get an item from a data list.

Function: Get an item from a data list.

This action allows you to retrieve a specific item from a list of data based on its position within that list. It's useful when you have a collection of items and you need to work with just one particular item from that collection.

Input

  • List
    • The list of data items you want to retrieve an item from.
    • Type: A list of Data from the built-in database
  • Index
    • The position number of the item you want to get from the list. Remember that the first item in a list is at position 0, the second at position 1, and so on.
    • Type: An integer

Output

  • Result
    • The specific data item retrieved from the list. This item will be stored in a variable named "Result" by default, but you can choose a different name.
    • Type: Data from the built-in database

Execution Flow

Real-Life Examples

Example 1: Getting a specific product from an inventory list

Imagine you have a list of all products in your inventory, and you want to quickly access the details of the third product in that list.

  • Inputs:
    • List: [Product A, Product B, Product C, Product D] (This represents your inventory list)
    • Index: 2 (Because lists start counting from 0, the third item is at index 2)
  • Result:
    • The action will retrieve "Product C" and store its details in the Result variable, allowing you to use its information in subsequent steps.

Example 2: Accessing a particular task from a project's to-do list

You have a list of tasks for a project, and you need to update the status of the first task.

  • Inputs:
    • List: [Design UI, Develop Backend, Test Integration, Deploy] (Your project's task list)
    • Index: 0 (To get the very first task)
  • Result:
    • The action will retrieve "Design UI" and make its details available in the Result variable, so you can modify its status or assign it to someone.

Example 3: Finding a customer from a filtered list

After filtering your customer database, you have a list of customers who made a purchase last week. You want to send a personalized email to the second customer on that filtered list.

  • Inputs:
    • List: [Customer_ID_101, Customer_ID_105, Customer_ID_112] (Your filtered list of recent customers)
    • Index: 1 (To get the second customer)
  • Result:
    • The action will retrieve "Customer_ID_105" and store their full customer record in the Result variable, which you can then use to populate an email template.