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
- Object:
- Result: The application will create a new variable named
ProductDetailsListcontaining:[["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
- Object:
- Result: The application will create a new variable named
UserProfileEntriescontaining:[["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
- Object:
- Result: The application will create a new variable named
AppSettingscontaining:[["Theme", "Dark"], ["NotificationsEnabled", true], ["Language", "English"], ["Version", "1.5"]].