Generate excel and download it in one click

Certified Lead Developer

Hi all,

We are trying to find if there is a way to generate an Excel, using a!exportDataStoreEntityToExcel() or other functionality, and start the download automatically without the need to access the interface after a while to download the Excel manually thought a link. We want to generate the excel and then download it in one click.

Has anyone tried this before or know how it can be achieved?

Thanks in advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    There is no way from user input task to generate and download document on one click. 
    But, If you know that the user will download a particular set of data, I recommend the following approach when using a process model:
    Before going to the user input task, generate the document using the a!exportDataStoreEntityToExcel() smart service.
    Then, simply provide the user with a link to download the document.

Reply
  • 0
    Certified Senior Developer

    There is no way from user input task to generate and download document on one click. 
    But, If you know that the user will download a particular set of data, I recommend the following approach when using a process model:
    Before going to the user input task, generate the document using the a!exportDataStoreEntityToExcel() smart service.
    Then, simply provide the user with a link to download the document.

Children
No Data