Spare Your Blushes with Pre-Commit Hooks
It’s Summer (at least in the northern hemisphere), hooray. You’ve booked some time off, wrapped up what you were working on as best you can, committed and pushed…
It’s Summer (at least in the northern hemisphere), hooray. You’ve booked some time off, wrapped up what you were working on as best you can, committed and pushed…
TL;DR The WebPageViewer add-on has an overload to accept some JavaScript. You can use that to execute arbitrary script locally. WebPageViewer.SetContent(HTML: Text; JavaScript: Text); Executing JavaScript with WebPageViewer…
TL;DR Extract the package with 7-Zip Open the extracted file in a VS Code / Notepad++ / text-editor-of-choice Edit the xml as required Use 7-Zip to compress in…
Intro This post is going to be a bit of a brain dump about developing my VS Code extension, branching strategy for pre-releases and releases and using GitHub…
TL;DR There is now a pre-release version of the AL Test Runner extension for Visual Studio Code. It will have the latest (and possibly unstable) features. Pre-Releases VS…
In PowerShell: $tablesInPermissionSets = @() $permissionSets = gci . -Recurse -Filter '*.al' | ? {(gc $_.FullName).Item(0).startsWith('permissionset')} $permissionSets | % { $content = gc $_.FullName -Raw [Regex]::Matches($content, '(?<=tabledata ).*(?=…
TL;DR JSON types reference their value in memory, not the actual value. The below is snipped from https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/jsonobject/jsonobject-data-type Be careful making JSON types equal to one another. When…
Intro I do this fairly often to prep a new (local) container for development. The script needs to be run on the Docker host and assumes that the…
The Code codeunit 50104 "Get Callstack" { SingleInstance = true; [ErrorBehavior(ErrorBehavior::Collect)] procedure GetCallstack() Callstack: Text var LF: Char; begin LF := 10; Error(ErrorInfo.Create('', true)); Callstack := GetCollectedErrors(true).Get(1).Callstack; exit(Callstack.Substring(Callstack.IndexOf(Format(LF))…
Collectible Errors In part 3 we had a look at the new platform feature, collectible errors. Long story short: it makes scenarios where you want to collect and…
We use cookies to improve your experience on this site. By continuing to browse, you agree to our use of cookies.
