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

Notifications

Announcements

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,748 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,401 Moderator 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

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 1,957 Moderator

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,245 Moderator

#3
YUN ZHU Profile Picture

YUN ZHU 1,045 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans