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

Community site session details

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

Attaching as PDF to posted sales/purchase invoice using oData API?

(0) ShareShare
ReportReport
Posted on by 65

Hi.

In print/send view there is an option to add PDF to attachments.

Is there a automated way to do this? Either automatically every time invoice is posted or using oData API?

Best regards

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    119 on at
    RE: Attaching as PDF to posted sales/purchase invoice using oData API?

    For either it would require development to achieve it. Contact your Microsoft partner to formulate a solution

  • Verified answer
    YUN ZHU Profile Picture
    92,733 Super User 2025 Season 2 on at
    RE: Attaching as PDF to posted sales/purchase invoice using oData API?

    Hi, as Josh mentioned, It's possible, but it's not a standard feature, so this requires customization.

    You can use Report.SaveAs(Integer, Text, ReportFormat, var OutStream [, RecordRef]) Method .

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/report/report-saveas-method

    Or use standard methods directly.

    pastedimage1650589001448v1.png

    Hope this info helps

    Thanks.

    ZHU

  • Catharsis Profile Picture
    65 on at
    RE: Attaching as PDF to posted sales/purchase invoice using oData API?

    Thanks for responses.

    For development side I also found this article if someone stumbles upon this thread:

    https://yzhums.com/20657/

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,308

#2
Sumit Singh Profile Picture

Sumit Singh 2,798

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,793

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans