Download File : nothings happens

0
Hi,    I have the following microflow that instanciates on the fly a FileDocument and then call Downloadfile   The button that calls this microflow does nothing ...    Could you help ?    thanks  
asked
9 answers
0

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!

answered
2

Hi Sebastien Bonelli,

 

  • Create FileDocument: Confirm that the FileDocument is instantiated correctly and populated with content. For example:

Is there a valid file in the FileDocument object?

  • Are attributes like Name or other mandatory fields being set properly?
  • DownloadFile Activity: Check the DownloadFile configuration. Ensure it references the correct FileDocument variable.
answered
1

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)

answered
0

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

 

answered
0

I run the application with MxAdmin, thus it has administrator rights and thus it has all rights on all the modules

answered
0

Hi,

here the document I have setup for download : it has a size, a name and content

newdocument.png

Thanks for your help

answered
0

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?

answered
0

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

answered
0

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

answered