File Reference Entity
  • 09 Jun 2022
  • 1 Minute to read
  • Dark
    Light

File Reference Entity

  • Dark
    Light

Article Summary

A File References Entity can be used to store files within a Folder. They allow users to use the file outside of its initial Flow and without having to pull it from the File System after it is added. In order to have CRUD actions on the File Reference Entity, create a Configuration Extension for the File Reference Entity. Actions created within the Configuration Extension will apply to all File Reference Entities.


Example 

  1. Right-click on a Designer Project and click Create Folder. On the Create Folder dialog window, click CREATE under Create Folder.  
  2. Right-click the folder and select Manage > Get Folder ID. In the ID window, click COPY TEXT and click DONE.
     
  3. In the Designer Project, create a new Flow
  4. Attach a Load From File Data step, located in Toolbox > FILE MANAGEMENT, to the Start step. On the Properties panel under INPUTS, click Unknown next to the File field and select Constant. Click CHOOSE FILE and select the desired file.
     
  5. From the PROCESS category in the Toolbox panel, attach an Add FileReferences To Folder step to the Load From File Data and the End steps.
  6. On the Properties panel of the Add FileRefereneces To Folder step paste in the ID for the Folder Id field. Set File References to Build Array and map LoadFromFileData1_Output to Item 0. Click Save to save changes.

Debug

  1. On the top action bar, click Debug.
  2. Click START DEBUGGING.
  3. After the Debugger runs, return to Decisions Studio and navigate to the folder to view that the FileRefernceEntity has been added. 


For further information on Flows, visit the Decisions Forum.



Was this article helpful?