Map to uppercase
Function: Map to uppercase
This function helps you easily convert all text items within a list to their uppercase equivalent. Imagine you have a list of words or phrases, and you need them all to be in capital letters for consistency or display purposes. This action takes your original list and creates a brand new one with all the text transformed.
Input,
- List: The list of text items you want to convert to uppercase. This input is required.
- Type: A list of text items.
Output,
- Mapped List: This action produces a new list where every text item from your original list has been converted to uppercase. You can then use this new list in your workflow or save it to a variable.
- Type: A list of text items.
Execution Flow,
Real-Life Examples,
Here are some practical ways you can use the "Map to uppercase" function:
-
Standardizing Product Categories:
- Scenario: You're importing product data, and the category names are inconsistent (e.g., "electronics", "Electronics", "ELECTRONICS"). You want them all to be uppercase for your database.
- Inputs:
- List:
["electronics", "clothing", "home goods", "books"]
- List:
- Result: The action will produce a new list:
["ELECTRONICS", "CLOTHING", "HOME GOODS", "BOOKS"]. You can then use this standardized list to update your product records.
-
Processing User Tags for Analytics:
- Scenario: Your application collects user tags (e.g., "new_customer", "vip", "newsletter_subscriber"). For analytical reports, you need all tags to be in uppercase to avoid duplicates due to case differences.
- Inputs:
- List:
["new_customer", "vip", "newsletter_subscriber", "premium"]
- List:
- Result: The action will produce a new list:
["NEW_CUSTOMER", "VIP", "NEWSLETTER_SUBSCRIBER", "PREMIUM"]. This uppercase list can then be used for consistent reporting.
-
Formatting Status Codes for Display:
- Scenario: You have a list of order status codes (e.g., "pending", "approved", "shipped") that you want to display prominently on an order tracking page. Making them uppercase ensures they stand out.
- Inputs:
- List:
["pending", "approved", "rejected", "shipped"]
- List:
- Result: The action will produce a new list:
["PENDING", "APPROVED", "REJECTED", "SHIPPED"]. You can then use this list to update the display of order statuses in your application.