Action to Generate Workflow as Downloadable

Is it possible to have an Action perform some of the functionality Workflows support but perform a GET request so that the client (mobile/web) may download the file?

My objective is to use a supported template file (HTML) to generate a report (PDF) to be visible quickly for the user.
Button on a row, click button, HTML template is rendered into a PDF and user is presented with a file for download or to view in a web browser.

0 10 1,216
10 REPLIES 10

Unfortunately, there is native โ€œdownload fileโ€ type of function for the moment.

Instead, what I do now -

  1. Create filed called [Trigger] and initial value set to 0
  2. set action to add 1 on this field.
  3. set workflow to be fired by UPDATE of this field.
  4. workflow will save (archive) the file onto cloud storage.
  5. Set the virtual column to construct the URL to this PDF file.
  6. This URL data filed is made hidden by default (in case of [Trigger] is equal with zero.
  7. Once the action is fired, workflow is triggered and generate PDF on the backend.

It takes a while till workflow complete the jobs, but once being done, when user click the URL it will display the output file.

Without visiting email, the user could access to the worflow output within Appsheet app.

This is not complete download file experience, but give kinda of similar experiences to my app users.

just for your guidance.

Hello,

Thank you for this guide. May i ask if there is a way of deleting previously created reports from drive? When trigger will increase initial value, each time a new pdf file will be generated. I am afraid some time later my space is drive will descrease by pdf reports. Can i somehow delete reports created by previous initial values?

Thank you indeed

Furkan

Recent years, โ€œstorageโ€ prices is remarkably cheaper, so I dont think the server space should not be an issue torward the future, but if you want to overwrite the old files generated by Workflow, then keep generating the files in the same file name by turning off the timestamp setting on the workflow/email set up.

Once new PDF is generated, then it will be saved on the same folder with the same name as perviously saved file, meaning it will keep overwrite.

@tsuji_koichi
@furkizio
Iโ€™m afraid thereโ€™s no overwriting functionality in Google Drive as each file is created with a different UUID

Wow thank you for this. I see it wonโ€™t be an issue with generating the same file name.

I will review storage prices of google drive.

Thank you so much

Hi, could you please share to us how you constructed the expression for this? my files are saved in google drive.

Those are documents you refer to

Thank you very much! appreciate this.

can you show me how to construct the URL to this PDF file?

This is what I
use in an app, based on the above guide :

CONCATENATE(โ€œdata/attachments/Adeverinte Covid/โ€, [x7],"/Adeverinta Angajator โ€œ,[x7],โ€ โ€œ,[nume ang],โ€.pdf")

Top Labels in this Space