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
  • with(
    local!exportUri: getdatasubsetdownloadlinkfromprocess(cons!RPT_PROCESS_MODEL_UUID,ri!input),

    if(isNull(local!exportUri),
    {/* Show an alternate message if the link cannot be generated */},

    a!linkField(
    links: {
    a!safeLink(

    label: "Download Daily Report",
    uri: local!exportUri
    )
    }
    )
    )
    )


    -> RPT_PROCESS_MODEL_UUID this constant should be process model type.

    Try the above code once. And check if there is any instance created after clicking on the link. If created monitor the process variables.
Reply
  • with(
    local!exportUri: getdatasubsetdownloadlinkfromprocess(cons!RPT_PROCESS_MODEL_UUID,ri!input),

    if(isNull(local!exportUri),
    {/* Show an alternate message if the link cannot be generated */},

    a!linkField(
    links: {
    a!safeLink(

    label: "Download Daily Report",
    uri: local!exportUri
    )
    }
    )
    )
    )


    -> RPT_PROCESS_MODEL_UUID this constant should be process model type.

    Try the above code once. And check if there is any instance created after clicking on the link. If created monitor the process variables.
Children
No Data