cancel
Showing results for 
Search instead for 
Did you mean: 

API exporting dashboard as PDF paper Format

hamsolo
7 - Data Storage
7 - Data Storage

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,

1 ACCEPTED SOLUTION

AssafHanina
Sisense Team Member
Sisense Team Member

Hey @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

Assaf

View solution in original post

4 REPLIES 4

AssafHanina
Sisense Team Member
Sisense Team Member

Hey @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

Assaf

Thanks @AssafHanina, works correctly now.

DRay
Community Team Leader
Community Team Leader

Hello @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.

David Raynor (DRay)

hamsolo
7 - Data Storage
7 - Data Storage

Thanks DRay, that was the answer I needed