Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Button to directly downlad a sales invoice

(1) ShareShare
ReportReport
Posted on by 35

On the Sales Invoice page, I would like to add a button labeled "Download PDF". When this button is clicked, the system should directly download the sales invoice as a PDF file.

Currently, the process to download a sales invoice as a PDF involves several steps:

  1. On the Sales Invoice page, I press the "Print/Send" button.
  2. From the available options, I select the "Draft Invoice" button.
  3. Then, I choose the "Send To" option.
  4. Finally, I select the "PDF Document " to generate and download the invoice.

This multi-step process is time-consuming and could be simplified significantly by implementing a dedicated "Download PDF" button. This new functionality will improve efficiency and enhance the overall user experience by allowing invoices to be downloaded with a single click.

Can someone help me with the coding required to implement this feature?

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 5,371 on at
    Button to directly downlad a sales invoice
    Using customization you can achieve this easily. To add a "Download PDF" button on the Sales Invoice page in Business Central, create a page extension for "Sales Invoice". Add an action with AL code that generates the Sales Invoice Report in PDF format using the SaveAsPDF method and downloads it via DownloadFromStream. This simplifies the process, allowing users to download the invoice in one click.
  • Suggested answer
    Yi Yong Profile Picture
    Yi Yong 1,504 Super User 2024 Season 2 on at
    Button to directly downlad a sales invoice
    Hello,
     
    It is best to find a vendor for customization.
     
    Alternatively, you can use Personalize mode to move the 'Draft Invoice' button to the 'Home' tab.
  • gdrenteria Profile Picture
    gdrenteria 12,750 Most Valuable Professional on at
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 9,952 Super User 2024 Season 2 on at
    Button to directly downlad a sales invoice
     
    You need to make a specific development to meet this need.
     
    (Moved to Dynamics 365 BC Form)
  • Martin Dráb Profile Picture
    Martin Dráb 230,543 Most Valuable Professional on at
    Button to directly downlad a sales invoice
    Which D365 app are you using? This forum is about D365 in general, while your question seems to be about a particular product (such as Finance and Operations or Business Central).

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,458 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,543 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans