Using complex types with custom APIs

  • Post comments:24 Comments
  • Reading time:8 mins read

Out-of-the-box Business Central APIs often use complex types. Addresses on entities and documents, line details, units of measures, journal dimensions, these are just a few examples. There may be more. A typical instance of a complex type looks like this:

The question is: can you do something like this in your own custom APIs?

And the answer is: yes and no.

Let’s start with the “yes” part of the answer.

(more…)

Continue ReadingUsing complex types with custom APIs

Business Central Sandbox is not the same as Preview

  • Post comments:4 Comments
  • Reading time:4 mins read

Just in case you have fallen victim of the confusion I see often in online communities, blogs, but also Microsoft official documentation: Dynamics 365 Business Central sandbox is not the same as Dynamics 365 Business Central preview. They are two different things. Keep in mind, in this blog post I am not talking about sandbox container environments (on-prem); I am only talking about online sandbox environments.

This is not pure semantics. Things in sandbox environments (and I mean, real sandbox environments of Business Central) differ from things in preview environments.

(more…)

Continue ReadingBusiness Central Sandbox is not the same as Preview

Writing gulp tasks

  • Post comments:4 Comments
  • Reading time:10 mins read

Now that you know how to get gulp up and running in VS Code, and how to export tasks from your gulp file, let’s talk about tasks themselves. What are they, what are they good for, and how to write them.

Gulp – being a task automation tool – is all about tasks. Anything you do about programming, which is not writing the code itself, can be considered a task, and can very likely be automated. Some tasks are automated already, like compiling your code, building your app. In case of AL development, there are many more already automated tasks, like creating a demo workspace or deploying your app to NAV. If you can automate them, tasks are immensely powerful because they save time and eliminate error.

If you are a web developer, your tasks can include bundling your source files and minifying them. For me, when building pre-2018 control add-ins, most important tasks were bundling source files, zipping the resource file, deploying a control add-in and importing the control add-in using PowerShell. All of these I have automated using gulp, and I’ll explain every single one of them in this series.

But for now, let’s simply take a look at how to write gulp tasks.

(more…)

Continue ReadingWriting gulp tasks