Business Central Attach Email Body
I recently did a post about how BC works with emails for CRM mostly. Check it out here: https://joshanglesea.wordpress.com/2022/07/01/business-central-crm-email-%f0%9f%93%a8/
This got me thinking about another scenario which I get asked about from time to time by prospective clients. If a customer/contact emails something important can you then attach that to a record in BC?
Now, I accept that attaching in BC is a nice user feature but I also appreciate long term it will build up the database size. I’m leaning towards the practical side of the argument in that checking emails in the interaction log entries isn’t that intuitive (check the referenced blog to understand more). Checking the attachments of a document or master record is though. Especially for critical information like a purchase order reference for a sales order. My idea for a solution stems from the wave 1 2022 release of this functionality – to save you checking it allows users to take email attachments into BC attachments for records: https://docs.microsoft.com/en-us/dynamics365-release-plan/2022wave1/smb/dynamics365-business-central/outlook-add-in-add-attachments-emails-directly-business-central-documents








Like what you see? Want to try it out? You can find the code here: https://github.com/JAng13sea/Blogs/tree/master/Email%20Body
I attempted to make the HTML nicer by using https://www.hougaard.com/wysiwyg/ but the result was the same as the standard preview. If like me you want to have the preview formatted correctly you will need to try a different approach – which is another copy of how standard BC does it.

This was originally posted here.

Like
Report
*This post is locked for comments