Get media
Function: Get media
This action allows you to retrieve a specific media file from your platform's storage. Once loaded, the file is made available for other actions to use, such as displaying it on a page, attaching it to an email, or processing its content.
Input,
- Id: The unique identifier of the media file you want to load. This is a piece of text (STRING).
- Result: The name of the variable where the loaded media file will be stored. By default, this variable will be named
MEDIA_FILE. This is a file (FILE) type.
Output,
- Result: The loaded media file, stored in the variable name you specified (defaulting to
MEDIA_FILE). This output is of type FILE.
Execution Flow,
Real-Life Examples,
-
Scenario: Displaying a product image on an e-commerce product page.
- Inputs:
Id:product_image_456789Result:PRODUCT_DISPLAY_IMAGE
- Result: The image file identified by
product_image_456789is loaded and stored in a variable namedPRODUCT_DISPLAY_IMAGE. This variable can then be used by a UI element to show the image to customers.
- Inputs:
-
Scenario: Attaching a user's uploaded resume to an application submission email.
- Inputs:
Id:user_resume_12345Result:APPLICANT_RESUME
- Result: The resume file identified by
user_resume_12345is loaded and stored in a variable namedAPPLICANT_RESUME. This variable can then be selected as an attachment when configuring an "Send Email" action.
- Inputs:
-
Scenario: Making a company logo available for use across various reports.
- Inputs:
Id:company_logo_mainResult:REPORT_LOGO
- Result: The company logo file identified by
company_logo_mainis loaded and stored in a variable namedREPORT_LOGO. This variable can then be inserted into different report templates to ensure consistent branding.
- Inputs: