API exporting dashboard as PDF paper Format
Hi,
Recently upgraded to Sisense Linux which required updating some syntax of API calls. Managed to get the exporting call working, however, having an issue with the "paperFormat" parameter. Pre-upgrade I was able to use "paperFormat": "letter" to export a dashboard in US Letter format. Now it's returning an error code that it doesn't recognize this value. I've tried "Letter" and "US Letter" returning a similar issue.
Seems to work fine when "paperFormat": "A4". Or exporting "Letter" via the UI.
Is there a list of valid values that is parameter can accept? Or what is the correct value of "letter" that the API accepts.
Thanks,
hamsolo
Posted 1 year ago·Last reply 1 year ago
4 comments
DRay
·1 year agoHello hamsolo,
I’m following up to see if the solution offered by AssafHanina worked for you.
If so, please click the 'Accept as Solution' button on their post. That way other users with the same questions can find the answer. If not, please let us know so that we can continue to help.
Thank you.
hamsolo
OP1 year agoThanks DRay, that was the answer I needed
Assaf Hanina
·1 year agoHey hamsolo ,
The Paper format supports the following enum options: [A0, A1, A2, A3, A4, A5, LEGAL, LETTER, TABLOID].
Using "paperFormat": "Letter" in the API results in the error: "No enum match for: Letter", as the value is case-sensitive and must be in uppercase. To resolve this issue, use "paperFormat": "LETTER" in the endpoint body.
Best regards
hamsolo
OP1 year agoThanks AssafHanina, works correctly now.