Skip to main content

Posts

Showing posts from August, 2020

How to bypass Multi-Factor Authentication or Email Authentication issue for Office 365 / Microsoft 365 Emails

Problem Statement: When MFA has introduced a couple of months ago in Office 365 / Microsoft 365 or made mandatory for a certain set of accounts, Microsoft Dynamics 365 NAV / Business Central had issues sending email through SMTP Email. Pre- requisites : Office 365 / Microsoft 365 Account Enabled Outlook Microsoft Dynamics 365 Business Central  Demonstration: 1. Creating App Password for Multi-Factor Authentication based Accounts: After you have set up MFA, Microsoft 365 allows you to create a One-Time password to login to the corresponding apps. This password cannot be viewed again so copy it somewhere. Follow the process below. Office 365 > My Account Settings & Privacy > Privacy > View Page Link Security & Privacy > Additional security verification > Create and manage app password Create Password Copy Password 2. Enabling Authenticated SMTP in Office 365 / Microsoft 365 Admin Center: After you have a password created, you need to check if you Mail Apps have the

How to Transfer Files through API using Base64 Stream to Business Central

Introduction: Transferring data from Business Central Tables through API is one of the latest version of transferring data from or to Business Central using the API Page Objects or  Web Services. Well, it gets a little difficult to transfer file blobs using the Media.ReadLinks and Media.EditLinks JSON field. Pre-requisite: Understanding of Business Central API Understanding how Blobs are accessible to Business Central AL Language Extension VS Code Understanding of JSON Data Types References: https://www.olisterr.tech/2019/09/understanding-apis-in-business-central.html https://demiliani.com/2020/01/24/dynamics-365-business-central-handling-blob-fields-on-apis/ https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/jsonobject/jsonobject-data-type Solution: 1. Using Business Central API to Pass Data from  BLOB to Base64 String: Whenever you have a file in a BLOB field and want to transfer as a Base 64 string to API - POST Request. Convert a Fi