Get object values
Function: Get object values
This action helps you extract all the individual values from a structured piece of information (an "object") and collect them into a single list. Imagine you have a contact card with fields like "Name", "Email", and "Phone". This action would give you a list containing just the "John Doe", "john@example.com", and "555-1234" values. It's useful when you need to process or display all the data points from a record without needing their specific labels.
Input
- Object: The structured piece of information (like a record, a data entry, or a collection of properties) from which you want to extract all the values. This could be data from a form, an API response, or the output of another action.
Output
- Result: The name of the variable where the action will store the new list of values. This list will contain all the individual pieces of data that were inside your original object, in no particular order.
Execution Flow
Real-Life Examples
Example 1: Extracting details from a product record
You have a product record and want to quickly get all its attributes into a list for display or further processing.
- Inputs:
- Object:
\{
"ProductName": "Laptop Pro",
"Price": 1200,
"InStock": true,
"SKU": "LP-2023-001"
\} - Result:
ProductDetailsList
- Object:
- Result: The application will create a new variable named
ProductDetailsListcontaining the values:["Laptop Pro", 1200, true, "LP-2023-001"].
Example 2: Getting user preferences from a profile
When a user logs in, you retrieve their profile as an object and need to list all their preferences.
- Inputs:
- Object: (Imagine this object comes from a "Get User Profile" action)
\{
"Theme": "Dark",
"Notifications": "Email",
"Language": "English",
"TimeZone": "GMT-5"
\} - Result:
UserPreferences
- Object: (Imagine this object comes from a "Get User Profile" action)
- Result: A variable named
UserPreferenceswill be created, holding the list:["Dark", "Email", "English", "GMT-5"].
Example 3: Processing an order item from an e-commerce API
You've received an order item's details from an API and want to quickly get all the data points for logging or display in a report.
- Inputs:
- Object: (Imagine this object comes from an API call for a specific order item)
\{
"ItemID": "SKU789",
"Quantity": 2,
"UnitPrice": 50.00,
"DiscountApplied": false,
"Currency": "USD"
\} - Result:
OrderItemValues
- Object: (Imagine this object comes from an API call for a specific order item)
- Result: The action will generate a list named
OrderItemValuescontaining["SKU789", 2, 50.00, false, "USD"], which can then be used for further calculations or display.