I need to display a link to download a row attachment on a dashboard. Since this is not a native feature (it's been requested since at least 2020), let the work arounds continue.
Project Details: I have 160 users recording time for projects, 1-7 entries per day into an intake sheet via forms. A helper sheet summarizes the time by user and week-ending date. Python uploads a PDF report to the summary sheet rows based on the intake data. Two smartsheet reports (with filters to show info for "current user") display the details and summary. A dashboard centralizes everything - a link for new time entries, a link to edit the data, the report of details and the summary report. All I need is access to the attachment…
While showing a report does not show the attachment icon, I can use python to grab the attachment url and add it to a column. The report can display this column on the dashboard, but…the link expires in just 2 minutes.
I could create a second helper sheet with just the user and week-ending date (my unique identifiers) and a copy of the attachment. Then embed this sheet with a default filter based on user. This fails cause folks can remove the filter and see too much. The imbedded sheet also looks horrible.
I could run my python script every 2 minutes to update the link but that seems like a bad idea.
I've seen suggestions to manually getting the link from emails (which lasts 90 days), but this fails due to the scale of the operation - 160 reports updated throughout the week. Manual anything is not an option.
Storing the files in a 3rd party library is also not an option.
My Questions:
Can I update the urlExpiresInMillis property in attachments so that it'll last at least 14 days?
Is there another option I can consider that will allow easy access to the attachment?