Skip to main content
Skip table of contents

Move a (Record) Folder

In some cases, you may want to move a record folder after the initial folder structure has been set up. As an example you may have a folder Opportunities_OPEN where your Opportunity record folders initially reside. When opportunities are lost, you may want to move them to a different folder Opportunities_LOST.

This poses the following challenges:

  1. 24Files sets up the folder structure once, when the record page gets loaded for the first time.

  2. You need an Apex action to move the record folder and all of its content.

  3. You need a way to reset the folder structure after the move, such that the content of the record folder remains visible in the 24Files component.

The use case above can be built by means of a Record Triggered Flow as described in the video. You can use this as an inspiration to build a similar flow for your use case.

https://youtu.be/HxZwumSMfuo

Here are the details of the flow:

image-20240930-080943.png

Overview of the Flow.

image-20240930-080635.png

Record triggered Flow

image-20240930-080716.png

Move assignment

image-20240930-080746.png

Final assignment

image-20240930-080815.png

Move

image-20240930-080843.png

Delete the related record in the 24Files Folder Structure Junction object.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.