Get media files
Function: Get Media Files
This action allows you to retrieve one or more media files (like images, documents, or videos) from your platform's media library. You provide the unique identifiers for the files you need, and the action will gather them into a list for you to use in your application.
Input
- Media IDs: A list of unique codes (text) that identify the specific media files you want to load. This input is required.
Output
- Result: A list of the actual media files that were successfully retrieved. This list will be stored in a variable you name (by default, it will be named "MEDIA_FILE").
Execution Flow
Real-Life Examples
-
Displaying Product Images on an E-commerce Page:
- Scenario: You have an e-commerce application and want to display specific product images on a product detail page. You know the unique IDs for these images.
- Inputs:
- Media IDs:
["image_product_A_main", "image_product_A_side", "image_product_A_detail"]
- Media IDs:
- Result: The action retrieves the three image files. These files are then available in a variable (e.g.,
MEDIA_FILE
) which you can use to display them on your product page.
-
Attaching Documents to a Customer Record:
- Scenario: A customer service representative needs to view all uploaded documents (e.g., contracts, ID scans) associated with a specific customer. These documents are stored in the media library.
- Inputs:
- Media IDs:
["doc_customer_123_contract", "doc_customer_123_id", "doc_customer_123_agreement"]
- Media IDs:
- Result: The action fetches the three document files. These files are stored in a variable (e.g.,
CUSTOMER_DOCS
) and can then be displayed or downloaded by the representative.
-
Loading Project Assets for a Creative Project:
- Scenario: A project management application needs to load all design assets (logos, mockups, fonts) for a particular creative project to allow team members to review them.
- Inputs:
- Media IDs:
["project_X_logo_final", "project_X_mockup_v3", "project_X_font_pack"]
- Media IDs:
- Result: The action successfully retrieves the specified design assets. These assets are stored in a variable (e.g.,
PROJECT_ASSETS
) and can be presented to the project team for review.