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...
Suggested answer

Programmatically Change Document Layout for a report

(0) ShareShare
ReportReport
Posted on by

I'm fairly new to development in BC.  I'm attempting to create a report that will loop through open invoices that are 15 or more days past due then send individual emails to the customer with a PDF attachment of the original invoice.  I am needing to use a different document layout for these emails from the normal one used for S. Invoices.  I want to programmatically change the email body document layout for this process.  I am able to use OnAfterGetRecord trigger to hook into Sales Invoice Header SendRecords procedure and emails are sent but this doesn't seem to be the right path (or maybe it is).  Any help is appreciated.

I have the same question (0)
  • MW-31100100-0 Profile Picture
    on at
    RE: Programmatically Change Document Layout for a report

    Thanks Josh.  The YouTube video did have some helpful things in it.  I considered the reminders but my understanding is that the reminders sends a customer statement type document where we would like to send actual invoices to the customers.  Am I wrong in this understanding?  I might be able to use some of what is in the YouTube video to solve, I'll give it a shot.  Thank you in either case though!

  • Suggested answer
    JAngle Profile Picture
    119 on at
    RE: Programmatically Change Document Layout for a report

    This resource may help with the layout part: https://youtu.be/hPMWTToSO1A

    I think you don’t actually need to do this. There is a feature called reminders. Totally different document and has an ability to calculate days past the original due date with levels of severity on the messaging or charges issued customers. Review this before developing: docs.microsoft.com/.../receivables-collect-outstanding-balances

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
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 4,252

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,117

#3
Sumit Singh Profile Picture

Sumit Singh 2,956

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans