Category: Tips and Tricks

Automatically update AppSource apps with minor updates.

Before the 2023 release wave 2, Admin users could manually update specific apps through the App Management page in the Business Central admin centre or await a major update for the environment, which will automatically update AppSource applications.

What if you don’t want to do it manually or wait for a Major update? Let’s say you want to update the AppSource apps to the latest version with every minor update.

The VAT Date is not within the range of allowed VAT dates.

Did it suddenly start to throw the “VAT Date is not within your range of allowed posting dates” error? Nothing to worry about; it is due to a new VAT-related functionality added by Microsoft.

Docker: You cannot sign in due to a technical issue. Contact your system administrator.

Docker: You cannot sign in due to a technical issue. Contact your system administrator.

Incorrect URL: http:///BC/SignIn

Correct URL: http:///BC/SignIn?tenant=default

OAuth – Part 05 – Service-to-Service Integration and Task Scheduler

In Basic authentication, we used an actual user to connect to BC, but with the new S2S authentication we are not using an actual user and Scheduled tasks must be created and executed in the context of a licensed user. Therefore API requests cannot schedule a background task. It is simple as that.

OAuth – Part 02 – Configure Service to Service Authentication

In this blog post, I’m going to take you through the steps required to complete the OAuth client credentials flow for Business Central. Check this link if you want to refer to the official post from Microsoft.

How to get Business Central Environment Related Attributes?

If you want to get the details about the environment you don’t have to reinvent the wheel, you can simply use the standard codeunit Microsoft has introduced. If you look into the codeunit 457 “Environment Information”, you will see there are many procedures that fetch attributes concerning the environment of the service on which the tenant is hosted. Codeunit 457 is part of the System Application.Source.

Lesson learned during Dataverse integration: Namemapping = ‘Logical’ was not found in the MetadataCache.

Yesterday I was working on integrating a custom entity using the box connector for Dataverse in Microsoft Dynamics 365 Business Central. After completing all the changes and deploying the app to a sandbox environment, I tried to open the custom entity table through its list page. Unexpectedly I ran into below dialogue box. The entity …

Continue reading

Quick fix for warning AL0604: Use of implicit ‘with’ will be removed in the future.

If you have not read my previous blog posts about the Implicit WITH, I suggest you read them to get a better understanding of the Implicit WITH. Also, you can read the Microsoft Docs to get more information as well. NoImplicitWith – The name #FieldName does not exist in the current context NoImplicitWith: The type …

Continue reading

NoImplicitWith: The type or method ‘Copy’ cannot be used for ‘Extension’ development.

If you have not read my previous blog, I suggest you read it to get a better understanding of NoImplicitWith. Microsoft recently announced about obsoleting the WITH statement and if your app.json file contains NoImplicitWith as a feature then you will probably be getting below error. The type or method ‘Copy’ cannot be used for …

Continue reading

NoImplicitWith – The name #FieldName does not exist in the current context

If you have used WITH statement in your AL code to make the code readable, then this blog will be helpful for you. There are people who completely support the use of WITH statement and I also was on that category a few years ago. Fortunately, I moved on from the use of WITH statements. …

Continue reading