download excel report from temporary community document folder to local drive

Hi ,

We have created a process model which will extract the report from querydatabase and export it to excel and save it under temporary document folder in community section.

We need to add this to report tab in tempo page as XYZ Report. Users needs to click on XYZ Report and the excel generated report could be downloadable and save this to local drive.

Could anyone help us and let us know how to do it.

Attached the process model.


OriginalPostID-255357



  Discussion posts and replies are publicly visible

Parents
  • I think Sudhir you are not saving correctly ,you need to save the 'entire ac!exportdata to pv!exportdata. For the ac!exportdata, you need to set values as below
    exportData.datasubset equal to rule!getAllProducts(topaginginfo(startIndex: 1, batchSize: -1))
    exportData.fieldNames equal to {"id", "name"}
    exportData.fieldLabels equal to {"ID", "Name"}
    exportData.filename equal to "Products"
    Then save the entire ac!exportdata to pv!exportdata

Reply
  • I think Sudhir you are not saving correctly ,you need to save the 'entire ac!exportdata to pv!exportdata. For the ac!exportdata, you need to set values as below
    exportData.datasubset equal to rule!getAllProducts(topaginginfo(startIndex: 1, batchSize: -1))
    exportData.fieldNames equal to {"id", "name"}
    exportData.fieldLabels equal to {"ID", "Name"}
    exportData.filename equal to "Products"
    Then save the entire ac!exportdata to pv!exportdata

Children
No Data