Hi Sebastien,
Can you try it with an entity that is a specialization of FileDocument?
It's generally not a good idea to use System.FileDocument directly to download files, but always an entity that is a specialization of System.FileDocument.
That way you can apply the correct entity access.
Let me know if this works!
Hi Sebastien Bonelli,
FileDocument
is instantiated correctly and populated with content. For example:Is there a valid file in the FileDocument
object?
Name
or other mandatory fields being set properly?DownloadFile
configuration. Ensure it references the correct FileDocument
variable.Hi Sebastien,
Can you verify if the user executing this action actually has the required entity access rights (check access rules on the entity) to view the FileDocument (users typically don't have access to the System.FileDocument, so you need to specialize from it)
Hi,
I have set all the mandatory fields in the FileDocument
: Name, size, Content, DeleteAfterDownload
FileDocument
is instantiated through create object in the microflow that ask for download, and populated with content through a base 64 decode to file action
DownloadFile
references the correct FileDocument
variable, the one I have created in the microflow
Strange
I run the application with MxAdmin, thus it has administrator rights and thus it has all rights on all the modules
Hi,
here the document I have setup for download : it has a size, a name and content
Thanks for your help
Hi Sebastien, have you checked if there are any errors in the browser console or logs when you click the button? Sometimes errors there can give clues about what's going wrong. Also, does the issue persist if you try it in a different browser or clear the cache?
Hi,
thanks for your reply
There is no error in the console and there is no download event if I clear the browser cache or change browser to edge, chrome or Firefox
Hi,
a question relative to the resolution, if the javasction do perfomrs an download and given that this download is perfomed by the backend, the file may be download effectively but at the server side ?
At the url xas : http://mydomain/xas/
Do you confirm ?
How to perform download a front side ?
Thanks