@socaljoker, can you try this syntax? The Utils JavaScript Library | Retool Docs
utils.downloadFile(data, fileName, fileType)
utils.downloadFile({base64Binary: pdfDataForSelectedInvoice.data['0'].icpdf },'Invoice #' + outstandingInvoicesTable.selectedRow.data['Invoice #'].trim(),'pdf')