Skip to main content

Posts

Showing posts from November, 2020

How to set PublicWebBaseUrl in configuration key while Publish Extension in MS Dynamics 365 Business Central

Hi Guys, In this blog we will see how we can fix the below mentioned error: Error: Could not open the specified startup page. Please check that the server configuration key PublicWebBaseUrl has been properly set. While Publishing the extension via VS Code after installation of MS Dynamics 365 Business Central, I got error to set PublicWebBaseUrl as shown below. You can solve this as follows: Open Microsoft Dynamics 365 Business Central Administration Panel and Go to service configured which is BC140. Then in Client Services Fast tab - Set the below mentioned property as : Syntax -  http[s]://[hostname]:[port]/[webserverinstance] Web Client Base Url -  http://localhost:8080/BC140/ After setting this property save and Restart the service. Then Restart Visual Studio Code and Publish the app again. This will resolve your error. Stay tuned for next blog😉

Lock/Block Page Filters in Dynamics Navision : By using FilterGroup()

 Hi Folks, In this blog we will see how we can set the filters on Page Programmatically i.e,  users cannot remove the filter by clicking the “ Clear Filter ” button. But if we will not use filtergroup here, only use SetRange then user will clear these filters using "Clear Filters" from Filters Pane. Sometimes we have to use this feature for security purpose also (Like Users can see the contacts only created by user itself) . Here i am taking example of Contacts. Currently if you open Contacts in Navision it will show you all contacts. Now add Filter of "SalesPerson Code" is equal to AH along with FilterGroup or any other filter you want, Also, i am adding Action button named "Contacts (with Filters)" on company Information page to Run Contact List Page based on our filters. pageextension   50100  "Company Information Extension"  extends  "Company Information" {      actions     {   ...

OTP SMS Authentication in AL (Business Central) without using .Net Variables

    OTP  is a "One-Time Password" which is randomly generated and sent to your registered mobile  number  or email address for validation of your transaction. In MS Dynamics NAV, OTP authentication can add an extra layer of security to our Environments. This is basically also known as two-factor authentications. In this scenerio, we will see how we can use OTP functionality in NAV and i am using  Nexmo  here to implement it.   Step-1  Firstly, Create a new account on Nexmo or you may use any other SMS service provider to get the API and their Secret Key.Here i have created a  free account for Testing Purpose using this Url - https://nexmo.com/   Once you have created an account, you will get your API credentials in the dashboard. Use the "API Settings" link to the right near the top of the screen to reveal the API key & its secret. Step-2  Now, we need to create a new page and declare a global variable n...