Update Salesforce content version from Mediafly metadata

Recipe ToolsDeveloper ToolAPI IntegrationCRMMarketingUtilitiesData ParserDocument/File

What it does

When someone calls this automation, it retrieves file metadata from Mediafly and updates the Salesforce content version record. The automation consolidates project features, folder hierarchy, and asset type into comma-separated values.

Who it's for

Sales operations teams who need to sync Mediafly file details into Salesforce content records without manual entry.

How teams use this

Sync Mediafly file details to Salesforce

When a file is uploaded to Mediafly, call this automation to pull its metadata and populate the Salesforce content version record with project features and asset type.

Enrich content records with folder structure

Add the folder hierarchy from Mediafly to the Salesforce content version so sales reps understand where files are organized. This requires mapping the full folder path into a single field.

Route files by asset type

Use the consolidated asset type field to automatically assign content versions to the right sales team or campaign. The automation stays the same and only the downstream routing logic changes.

How it works

  1. Receive the function call. A function call initiates this automation in real time with the file identifier and Salesforce record details needed to proceed.
  2. Get file metadata from Mediafly. Retrieve the file metadata from Mediafly using a REST call, including project features, folder hierarchy, and asset type information.
  3. Consolidate metadata into fields. Loop through project features, folder hierarchy, and asset type arrays from the metadata response and consolidate each into comma-separated values.
  4. Update the content version record. Update the Salesforce content version with the consolidated project features, folder hierarchy, and asset type values.