Challenge #6 – Azure Blob Storage

To surface a document library stored in Azure Blob Storage in Business Central. The documents only live in Azure Blob Storage but can be accessed through Business Central. The documents can be opened in the browser from an action.

Expected result

Challenge #6

Pre-requisites

To complete this challenge, you will need:

Steps

  • Create an empty app
  • Create a new table with the relevant fields to describe an Azure Blob
  • Create a codeunit to encapsulate the access to Azure Blob Storage and a can populate the new table.
  • Create a list page on top the new table. The table should be temporary.
  • Add an action to the page that can open the selected document.

Hints

  • The documentation for Azure Blob Service REST API can be found here https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-rest-api. Look for the “List Containers” operation.
  • In VS Code, use Ctrl+Shift+P and type AL GO and remove the customerlist page extension
  • Use the ttable and the tfield snippets to create the table.
  • You can invoke the “List Container” Url directly in a browser to see the returned information.
  • Use the tcodeunit snippet to create the codeunit.
  • Use the tpage and the tpagefield snippets to create the list page.
  • Use the Hyperlink() method to open the document.

Cheat Sheets

Enjoy

Esben Nyhuus Kristoffersen

Passwords: Dote6111 Cujy0673 Xymo2826 Sufo3097 Nyko3952 Veci1100

4 thoughts on “Challenge #6 – Azure Blob Storage

  1. Can the cheat sheets be made public? It would be tremendously helpful to have access to any documentation on accessing azure blob from Business Central.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s