Ask AI
Skip to main content

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,

  1. Scenario: Displaying a product image on an e-commerce product page.

    • Inputs:
      • Id: product_image_456789
      • Result: PRODUCT_DISPLAY_IMAGE
    • Result: The image file identified by product_image_456789 is loaded and stored in a variable named PRODUCT_DISPLAY_IMAGE. This variable can then be used by a UI element to show the image to customers.
  2. Scenario: Attaching a user's uploaded resume to an application submission email.

    • Inputs:
      • Id: user_resume_12345
      • Result: APPLICANT_RESUME
    • Result: The resume file identified by user_resume_12345 is loaded and stored in a variable named APPLICANT_RESUME. This variable can then be selected as an attachment when configuring an "Send Email" action.
  3. Scenario: Making a company logo available for use across various reports.

    • Inputs:
      • Id: company_logo_main
      • Result: REPORT_LOGO
    • Result: The company logo file identified by company_logo_main is loaded and stored in a variable named REPORT_LOGO. This variable can then be inserted into different report templates to ensure consistent branding.