Downloading An Attachment (FileReference) From a Report
What's the best way to display a link to an attachment that has been uploaded with a submitted request on a report? I've got the attachment saved in my entity extension just fine, I can download it from other places like the approval/denial form, etc. so no issues there. But when I do put a file reference on the column to the file field, it gives me either an entity id or a System.Byte[] link that goes nowhere. I've built an inline field flow but it just doesn't seem to work. Help
Comments
-
We will want to use a flow inline field for this. Be sure to include a column in the report for the item's id so that we can fetch the entity.
Pass in the ID as the Name in the Get Cell By Name step along with the Selected Row for the Row.
Then using a Fetch Entites step, we will pass in the ID we are looking for with the Fetch Criteria ID Equals. If there is only one result returned, we will pass in the FileURL from the entity to the End Form Session Step.
Documentation:
- Flow Inline Fields: https://documentation.decisions.com/docs/using-flow-inline-fields-to-extend-report-data
- Get Cell by Name: https://documentation.decisions.com/step-library/docs/get-cell-by-name
- Fetch Entities: https://documentation.decisions.com/step-library/docs/fetch-entities-step
- End Form Session: https://documentation.decisions.com/step-library/docs/end-form-session
Howdy, Stranger!
Categories
- 4.2K All Categories
- 68 General
- 11 Training
- 203 Installation / Setup
- 1.1K Flows
- 107 Rules
- 262 Administration
- 212 Portal
- 494 General Q & A
- 698 Forms
- 334 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 180 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 80 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions