Hi, Iโm creating an application to generate PDF files. I would like these files to be able to be opened directly in the application, e.g. in Case details or using an action. I followed the instructions I found on the AppSheet Community forum: Get URL of workflow generated file, but I am still unable to open the file (appears standard error: 404 - File or directory not found.).
I would like to make sure that I understand everything correctly: I want to create a file in the standard path (appsheet/data/[app-name]/Files), so in the file name (field: File Name Prefix) I donโt need to specify the file path. Therefore, in the File Name Prefix field I only enter the phrase: CONCATENATE (โControl_list -โ, [Case ID], โ. Pdfโ). As far as I understand, Iโm using exactly the same formula in the Set these columns field. I can find the file in the standard location, the filename is written in the file column, but I am unable to open the file. Please help: is there anything else I should pay attention to?
Solved! Go to Solution.
So, itโs a strange way round but hereโs how I did it.
Create a file path within your column where the PDF file is going to save within your table,
I used: concatenate("/appsheet/data/App_ID/Folder_Name/")
Point your workflow action โSave FIleโ folder path to โFolder_Nameโ (Disable Timestamp) and maybe use file name prefix identify your file,
I used:
CONCATENATE(
DAY(TODAY()),
IF(
IN(
DAY(TODAY()),
LIST(11, 12, 13)
),
โthโ,
SWITCH(
RIGHT(DAY(TODAY()), 1),
โ1โ, โstโ,
โ2โ, โndโ,
โ3โ, โrdโ,
โthโ
)),"_",
INDEX(
LIST(
โJanโ, โFebโ, โMarโ, โAprโ, โMayโ, โJunโ,
โJulโ, โAugโ, โSepโ, โOctโ, โNovโ, โDecโ
),
MONTH(TODAY())
),"_",year(today())
," @ ",[Report_Type]
)
which identifies my file within my table as โ4th_May_2020 @ 0600โ
My action is shown below in the red box where once clicked opens the pdf in another browser tab.
Hope this makes sense.
Chris.
One of the common mistake in terms of workflow set up to get the PDF through email and then generate the URL to access to the saved file is to forget to turn on โDisable Time Stampโ
Hi! Thanks for quick response. I forgot to mension that I actually disabled the timestamp.
So, itโs a strange way round but hereโs how I did it.
Create a file path within your column where the PDF file is going to save within your table,
I used: concatenate("/appsheet/data/App_ID/Folder_Name/")
Point your workflow action โSave FIleโ folder path to โFolder_Nameโ (Disable Timestamp) and maybe use file name prefix identify your file,
I used:
CONCATENATE(
DAY(TODAY()),
IF(
IN(
DAY(TODAY()),
LIST(11, 12, 13)
),
โthโ,
SWITCH(
RIGHT(DAY(TODAY()), 1),
โ1โ, โstโ,
โ2โ, โndโ,
โ3โ, โrdโ,
โthโ
)),"_",
INDEX(
LIST(
โJanโ, โFebโ, โMarโ, โAprโ, โMayโ, โJunโ,
โJulโ, โAugโ, โSepโ, โOctโ, โNovโ, โDecโ
),
MONTH(TODAY())
),"_",year(today())
," @ ",[Report_Type]
)
which identifies my file within my table as โ4th_May_2020 @ 0600โ
My action is shown below in the red box where once clicked opens the pdf in another browser tab.
Hope this makes sense.
Chris.
It works! Thanks a lot!
No problem.
podrias mostrarnos en la aplicacion por favor
Hi! In which part do you asigned the name of the file to be open. In te workflow I assigned the id name as the name of the file, but in the file column i understand i should leave it blank? I have my files in the correct folders, but still show me a not found message
User | Count |
---|---|
18 | |
9 | |
8 | |
5 | |
5 |