Unable to generate process report to Excel

Hi Team,

When i try to generate excel from process report using this code

 a!linkField(
        labelPosition: "COLLAPSED",
        links: a!dynamicLink(
          label: "Render Excel File",
          saveInto: {
            a!exportProcessReportToExcel(
              report: cons!MPPCONS_PRSAMReport,
              documentName: "Report " & now(),
              saveInFolder: cons!MPPCONSFLDR_SAMDocuments,
              onSuccess: a!save(
                local!exportId,
                fv!newDocument
              )
            )
          }
        )
      ),

It shows below error and local!exportid remains null kindly help

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data