Download File
Comments
-
There are two methods to download a file from your case entities. The simplest method is to navigate to the Case View of the desired entity and utilize the DOWNLOAD FILE button under Case Activity for the aforementioned file. See the picture below:
The next method is to utilize Download File step. First, you will need to fetch the case entities utilizing the Get All [TypeName] step under User Defined Types > Case Entity > [Type Name] > Get All [Type Name]. The resulting output will be a list of case entities. The Get FileReferences In Folder step will be used to retrieve the file(s) attached to the specific case entity. In my example, the input, Folder Id selects for the first Entity Id of the fetched case entities. (See picture below)
The final step will be Download File step under Integration > Internal Services > FileReferenceService. Notice, the Get FileReferences In Folder step will retrieve all the files associate with the aforementioned case entities. Here, you will further parse through the case entity using the functionality of the step's inputs, filename and id, to retrieve the specific file. In my case, I chose the first filename and id in the list. (See Below)
The location of the file once it has been downloaded can be found using the debug feature located at the top of the Flow Designer window and viewing the output of the Download File step. (See Below)
Local Directory:
I have attached a sample project containing an example case entities data type and three flows: one flow to create an entity, one to attach a file, and one to download the file.
*Please Note: The examples attached were developed to be instructional, and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact: services@decisions.com
Howdy, Stranger!
Categories
- 4.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions