Update Box file shared links on schedule

Recipe ToolsDocument/File

What it does

When a scheduled time arrives, this automation lists files in a Box folder and updates the shared link expiration date for each file. Someone can set the expiration date once, and the automation refreshes it on the schedule.

Who it's for

Operations teams who manage Box folders and need shared links to stay active without manual updates.

How teams use this

Keep shared links active automatically

Run the automation weekly to refresh expiration dates on all files in a folder. Shared links stay valid without someone manually updating each one.

Extend links for archived projects

Point the automation at a folder that holds completed project files. Set the expiration date to a longer period so archived work stays accessible to the team.

Sync expiration across multiple folders

Run separate instances of this automation on different Box folders, each with its own schedule and expiration policy. All folders stay in sync without manual work.

Notify teams before links expire

Add a condition to check expiration dates and only update links that are within a certain number of days of expiring. Include a notification step so teams know which files need attention.

How it works

  1. Run on a set schedule. The automation starts at a specified interval, such as daily or weekly, to refresh shared link expiration dates.
  2. List files in the folder. Box returns all files and folders in a specific folder, one level deep, so the automation can process each item.
  3. Check if item is a file. For each item returned, the automation checks whether the type equals file. Files move forward; folders are skipped.
  4. Retrieve file metadata from Box. The automation retrieves metadata for each file in Box, including current shared link details and expiration settings so updates can be applied.
  5. Update the shared link. A custom Box operation updates the shared link expiration date so the link remains valid for the next cycle.