Skip to content

James Pearson

109 Posts
23,606 Views
Dynamics 365 Business Central

Tip: List-Commits

function List-Commits { cd 'C:Git' $Commits = @() Get-ChildItem . -Directory | % { cd "$_" if (Test-Path (Join-Path (Get-Location) '.git')) { $Commits += git log --format="$($_)~%h~%ai~%s~%an" |…

📅 11 January 2022 👁 90 views
Dynamics 365 Business Central

Tip: Remove-BranchesWithUpstreamGone

Wait, I Thought I Deleted That Branch? One of the things that I found counter-intuitive when I was getting started with Git is that when branches are deleted…

📅 20 October 2021 👁 181 views
Dynamics 365 Business Central

Test Explorer in Visual Studio Code

The July 2021 release of Visual Studio Code (1.59) introduced a new testing API and Test Explorer UI. From v0.6.0 this API is used by AL Test Runner.…

📅 1 September 2021 👁 267 views
Dynamics 365 Business Central

Using Code Coverage in Business Central Development

Intro Sample code coverage summary In the latest version of AL Test Runner I’ve added an overall percentage code coverage and totals for number of lines hit and…

📅 20 July 2021 👁 140 views
Dynamics 365 Business Central

Get Errors from a Docker Container Event Log

“You cannot sign in due to a technical issue. Contact your system administrator.” Business Central Terrific. This is in a local Docker container, so I am the system…

📅 10 June 2021 👁 104 views
Dynamics 365 Business Central

Show Table Data from AL Test Runner

Why? If you are writing Business Central automated tests then you are probably creating some data as part of those tests. Sometimes it can be useful to see…

📅 8 May 2021 👁 47 views
Dynamics 365 Business Central

Increase ODataServicesOperationTimeout for Longer Debugging

TL;DR Invoke-ScriptInBCContainer [container name] {Set-NavServerConfiguration bc -KeyName ODataServicesOperationTimeout -KeyValue 00:20:00 -ApplyTo All} Timeout Error If you use AL Test Runner to debug your tests then you are using…

📅 22 April 2021 👁 183 views
Dynamics 365 Business Central

Upgrade Your StrMenus to Confirmation Pages

Exhibit A: StrMenu when posting a sales document Prompting the User Sometimes we want to ask users to make a decision before executing some business logic. Often we…

📅 9 April 2021 👁 413 views