In every new Qlik Sense release, we see some cool additions and features that make our life easier. All of the major ones, are discussed here, https://community.qlik.com/blogs/qlikproductinnovation/2018/09/11/qlik-sense-september-2018-has-arri..., but for those that work a lot with the Capability Api, there are 3 very much desired and long expected features: exportData, exportImg and exportPdf. With these, you can export any embedded object from your mashup in the above formats. You can also customize them by passing the desired options.
Below are the links to the help files so you can experiment more.
Seems that the options parameter is wrong. Try to remove the options object in exportData(options). The default exportData() without parameters will export an Excel file.
Looking at C:\ProgramData\Qlik\Sense\Repository\TempContent, I find both the folder ('89332cf1-2f02-4857-bc47-fbc5d2a1e633') and the file ('e5bb2962bbc640ecb93dd2d11589faa0.png').
The exportData() creates folders and urls the in the same place, and download works well.
INFO qlik-qap01 System.Repository.Repository.Communication.StaticContent.StaticContentRequestHandler Request failed: file not found /tempcontent/89332cf1-2f02-4857-bc47-fbc5d2a1e633/e5bb2962bbc640ecb93dd2d11589faa0.png
While Repository\Trace\QLIK-QAP01_Audit_Repository.txt reports:
INFO qlik-qap01 Audit.Repository.Repository.Core.Resource.TempContentResource Temporary content with path '/tempcontent/89332cf1-2f02-4857-bc47-fbc5d2a1e633/e5bb2962bbc640ecb93dd2d11589faa0.png' and data location 'C:\ProgramData\Qlik\Sense\Repository\TempContent\89332cf1-2f02-4857-bc47-fbc5d2a1e633\e5bb2962bbc640ecb93dd2d11589faa0.png' was created. ServeOnce = False, ExpirationDate = 10/10/2018 16:48:56 Add NONE anonymousXXXXXXXX-XXXX-XXXXXXXXXXXX
and similar when creating the XLSX file:
INFO qlik-qap01 Audit.Repository.Repository.Core.Resource.TempContentResource Temporary content with path '/tempcontent/6dcc9e5a-ccbe-4b90-863e-a8b3cca7937a/2f3da554-7752-457b-8434-dd6036e79c4d.xlsx' and data location 'C:\ProgramData\Qlik\Sense\Repository\TempContent\6dcc9e5a-ccbe-4b90-863e-a8b3cca7937a\2f3da554-7752-457b-8434-dd6036e79c4d.xlsx' was created. ServeOnce = False, ExpirationDate = 10/10/2018 17:04:55 Add NONE anonymousXXXXXXXX-XXXX-XXXXXXXXXXXX
Anyone got exportImg() working?
Are you using virtual proxies? Or anonymous login?
Actually, the documentation for exportImg() is wrong about the imageType. The settings should contain { format: 'png' }, but default is png, so it works.