web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

REST API: Getting sales invoice pdf in different report layout

(0) ShareShare
ReportReport
Posted on by 5

Hi everyone,

when using get pdfDocument, more precisely /pdfDocument/pdfDocumentContent REST API get pdf in layout which is in business central set as first in sequence
pastedimage1676988771976v1.png
Can I somehow force it, using query or something, to use different layout (in this case let's say the second one)? I can't find anything in documentation, using google. I even asked ChatGPT which suggested using query string layout = {name of layout}, but that did not work either.

Thank you very much for any help 

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,786 Moderator on at

    I am not sure on this, but in this case it will always prefer 1 sequence.

    Thanks.

  • Koson Profile Picture
    5 on at

    So there is no way to override this behavior, right?

    I am just so baffled that i can't find anybody asking the same question on google :D seems unreal to me.

  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    hi

    Reading the documentation, I don't think you can do what you want to do

    learn.microsoft.com/.../dynamics_pdfdocument_get

    DAniele

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,032 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,049 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,029 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans