Saving file reference entities in a dynamic folder
Comments
-
I have an application where I will need to save files into specific folders by date. I figured out how to use the merge text editor to create the folders, and I think that the same logic will work to save the folders but for one thing, which is that I will have two folders with the same date.
I need to save files into two different folders (each file will only be put in one place, not both)
Wire forms8-19-20
Transaction Documentation8-19-20If I use the text editor to build the folder name of 8-19-20, how do I tell it which Parent folder it should use?
-
You can use a Fetch Entities step with the below properties to dynamically fetch a folder by its name:
[ul][li]Type: Folder[/li][li]Show Outcome for Single Result: True[/li][li]Fetch Criteria:[/li][li] entity_name | Equals | (Merge text for todays date in the same way you did to name the folders ex. 10/6/2020)[/li][li] deleted | Equals | False[/li][li] full_path | Contains | (either Wire Forms or Transaction Documentation) [/li][/ul]
Use the Result outcome path for a Save Entities or Create Document step to map EntityResult.FolderId into the ParentFolderId parameter of the new file reference entity or document.
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions