Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Access Business central documents in external applications

Posted on by 30

We want to capture documents like invoices and display the pdf's on our customer portal.Is there a way to do that? How are you all displaying BC documents in external apps?

Any help would be appreciated.

Categories:
  • IIMO Profile Picture
    IIMO 30 on at
    RE: Access Business central documents in external applications

    Thanl you somuch

  • IIMO Profile Picture
    IIMO 30 on at
    RE: Access Business central documents in external applications

    thank you

  • Robyn2018 Profile Picture
    Robyn2018 Most Valuable Professional on at
    RE: Access Business central documents in external applications

    Hi,

    It is possible to prepare a web service with a parameter (the invoice no. ie) and inside the ws create the pdf file with report.saveaspdf.  When I have the pdf I can return this file as reply of the web service.

    Maybe is a good solution.  Remember BC do not save automatically the pdf.

    Roberto

  • Verified answer
    Jeffrey Bulanadi Profile Picture
    Jeffrey Bulanadi 644 on at
    RE: Access Business central documents in external applications

     Hi IIMO,

     

    Yes this is technically possible. What you can do is to use the standard business central APIs

     

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/

     

    Here is the sample call to a sales invoice which then has an option to generate a pdf link for you to download.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_salesinvoice

    pastedimage1660150521391v1.png

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans