This automation block copies the files that have just been added to a column of type File on a subitem into the configured SharePoint folder for that subitem.
It works the same way as Copy updated assets from column to SharePoint folder for item (J), but for subitems: you choose a File column from the subitems board, and the files go into the subitem's own folder rather than the parent item's.
To copy every file in the column instead, use Copy all assets from column to SharePoint folder for subitem.
You can also create a folder structure of subfolders, based on the column values from monday.com, as required.
Prerequisites
The subitem must already have its own SharePoint folder. Create it with Create folder for subitem in SharePoint, which nests the subitem's folder inside the parent item's folder.
If the subitem has no folder yet, the automation stops with a message saying that no folder has been configured. No files are copied.
The subitems board needs at least one column of type File.
For automations
Use the "Create from scratch" automation builder to select a subitem trigger, for example "When a subitem's column changes" with the File column, then add "Copy updated assets from column to SharePoint folder for subitem" in the Then section.
In the sentence:
- subitem files column lists the File columns on the subitems board. Choose the column that holds the files to copy, usually the same column as the trigger. If the list says "No subitem file columns found", add a File column to the subitems first.
- this (folder structure) is optional. Leave it empty to copy the files straight into the subitem's folder, or enter a structure such as
/{Group.Name}/{Item.Name}/to create subfolders inside it.
Select the correct Microsoft 365 account for the automation block, then save the automation.
For workflows
Create a workflow and for the action, select the "Copy updated assets from column to SharePoint folder for subitem" automation block as a new action.
Things to know
- Only files added to the column in the last 20 seconds are copied. Files that were already in the column are left alone.
- If no files were added in that time, the automation finishes without copying anything.
- Adding several files at once can start the automation several times. A run that would copy exactly the same files as one already running is skipped, and its activity log says so. Other runs may copy some of the same files again, but each copy replaces the previous one, so you end up with one copy of each file.
- Files are copied in the background, so large files or many files can take a little while to appear in SharePoint.
- A file with the same name as one already in the folder replaces it.
- File names SharePoint doesn't allow are adjusted when copied: characters such as
:?*"<>|become_, and leading or trailing spaces are removed.