Ask AI
Skip to main content

Get object entries

Function: Get object entries

This action helps you break down an "Object" into a list of its individual pieces. Imagine you have a box of items, and each item has a label (key) and a value. This action takes that box and gives you a list where each entry is a pair: the item's label and its value.

Input

  • Object: The collection of key-value pairs (like a record or a data structure) that you want to analyze. This is the main item you're working with.

Output

  • Result: The name of the variable where the action will store the new list. This list will contain all the key-value pairs from your original Object, with each pair presented as a small list itself (e.g., ["key", "value"]).

Execution Flow

Real-Life Examples

Example 1: Listing Product Details

Imagine you have an "Object" representing a product with its name, price, and availability. You want to see all these details as a simple list.

  • Inputs:
    • Object: \{"ProductName": "Laptop", "Price": 1200, "InStock": true\}
    • Result: ProductDetailsList
  • Result: The application will create a new variable named ProductDetailsList containing: [["ProductName", "Laptop"], ["Price", 1200], ["InStock", true]].

Example 2: Extracting User Profile Information

You have a user profile "Object" and need to get a list of all its attributes and their corresponding values for display or further processing.

  • Inputs:
    • Object: \{"FirstName": "Alice", "LastName": "Smith", "Email": "[email protected]", "Role": "Admin"\}
    • Result: UserProfileEntries
  • Result: The application will create a new variable named UserProfileEntries containing: [["FirstName", "Alice"], ["LastName", "Smith"], ["Email", "[email protected]"], ["Role", "Admin"]].

Example 3: Analyzing Configuration Settings

Suppose you have an "Object" holding various application configuration settings. You want to list each setting and its current value.

  • Inputs:
    • Object: \{"Theme": "Dark", "NotificationsEnabled": true, "Language": "English", "Version": "1.5"\}
    • Result: AppSettings
  • Result: The application will create a new variable named AppSettings containing: [["Theme", "Dark"], ["NotificationsEnabled", true], ["Language", "English"], ["Version", "1.5"]].