Skip to main content

I have a folder.

I made a box relay to move files to another folder upon upload. 

How do I add a condition so that i only move files of a certain type (jpeg)? 

I can’t find any conditional logic.

Hi ​@parker11,

Welcome to Box Community, and we’re glad to help with your Box Relay query! 

 

To add a condition to your Box Relay workflow to move only files of a certain type, such as JPEG, you would typically use the “File With Metadata” trigger type. This trigger allows you to initiate a workflow based on specific metadata attributes and their values.

Here’s how you can set it up:

  1. Instead of using a general “A File Event” trigger for uploads, select “File With Metadata” as your workflow’s trigger.
  2. Choose the relevant metadata template. If file type is captured as a metadata attribute (either a default one or one you’ve created in a custom template), you can then add a condition.
  3. Specify the metadata attribute (e.g., “File Type”) and set its value to “jpeg” (or the appropriate value for JPEG files). This ensures the workflow only starts for files that match this metadata condition.

This approach allows you to build highly granular conditions for your workflow.

 

Hope it helps, and please let us know if you have questions. 

 


Thank you for replying. 

I do not see the “File With Metadata” option. 

I am on a Business account. 

Where would this be? 
 

 


Hi ​@parker11,  Good day! 

The “File With Metadata” option, particularly in the context of Relay workflow outcomes for folders, is available in Enterprise and above plans as part of the ‘Metadata events and actions’ feature Since you are on a Business account, you may not have access to these specific metadata functionalities.

You can easily find this information through this link. 

 

Thanks for posting! 


Ah, well, that makes sense. 

Thank you for your help. 


Reply