top of page


Send an Invoice to a Customer (Part 2 of sending an email using a specific email address)
Following on from setting up a codeunit to send from a specific email address (defined on the Sales & Receivables setup) We need to do the following steps: Get the email address of the customer Build an email body Build and attach a pdf of the invoice report Get the email address of the customer Business Central allows you to define document layouts per customer, so we should first check here to see if an email address has been defined, if not, let's use the customer email a
Josh
5 days ago1 min read
Â
Â
Â


Send an email from a specific email address using Business Central AL Code
Sending emails from Business Central is always a requirement from Business Central. Within Email Accounts you could have several email accounts setup so this blog will help you define the email account to send from. For this example we will send a posted sales invoice from a specific shared mailbox. Lets start by adding new fields to the Sales & Receivables setup: We need 2 fields, 1 to store the email address and 1 to store the guid which is used later when we try to send: A
Josh
Jan 211 min read
Â
Â
Â


Download a file using Business Central from Azure Blob Storage with AL Code
In this example, we will download a csv file and import into Business Central. Please note this is simply for demo purposes, if you are using this within your real environments, you should use a table to store the variables so that they are not hardcoded. We need to create a function to import customers from an InStream. This is a simple example, you may want to include adding code to import a customer using a template etc. Next we need to create the function to download the
Josh
Jan 131 min read
Â
Â
Â


Upload a file using Business Central to Azure Blob Storage with AL Code
In this example, we will create a simple csv file and upload. Please note this is simply for demo purposes, if you are using this within your real environments, you should use a table to store the variables so that they are not hardcoded. We need a function to create a csv file ready to upload to azure storage. WriteHeaderRow and WriteCustomerLine functions: Now we need the function to upload the file to Azure Blob Storage: Note here are where i mentioned above regarding vari
Josh
Sep 29, 20251 min read
Â
Â
Â


How to Add a Custom Field to a Standard Business Central Table
Prerequisites for Adding a Custom Field Please see my blog post " A Step-by-Step Guide to Connecting Visual Studio Code with Your...
Josh
Sep 24, 20252 min read
Â
Â
Â


A Step-by-Step Guide to Connecting Visual Studio Code with Your Business Central Sandbox
Connecting Visual Studio Code (VS Code) to your Business Central Sandbox. This guide will help you set up this connection, making your...
Josh
Sep 23, 20253 min read
Â
Â
Â
bottom of page