Skip to content

Instantly share code, notes, and snippets.

View jhoek's full-sized avatar

Jan Hoek jhoek

View GitHub Profile
#!/usr/bin/env pwsh
param
(
[Parameter(Mandatory, Position = 0)]
[string]$CommitMsgFile
)
$Branch = & git rev-parse --abbrev-ref HEAD
Add-Content -Path $CommitMsgFile -Value "[$Branch]"
@jhoek
jhoek / actions.json
Created June 7, 2021 13:46
Business Central Page Actions
{
"item":{
"navigation": {
"Entries": {
"caption": "Entries",
"ellipsis": true
},
"Availability": {
"caption": "Availability",
"children": {
@jhoek
jhoek / Convert-TextConstantToLabel.ps1
Created June 7, 2021 13:44
Convert-TextConstantToLabel
function Convert-LanguageIdentifier
{
param
(
[Parameter(Mandatory, ValueFromPipeline)]
[ValidatePattern('[A-Z]{3}')]
[string[]]$ThreeLetterWindowsLanguageName
)
$ThreeLetterWindowsLanguageName.ForEach{
@jhoek
jhoek / Convert-TextConstantToLabel.ps1
Created March 23, 2021 13:00
BC: Convert-TextConstant to Label
function Convert-LanguageIdentifier
{
param
(
[Parameter(Mandatory, ValueFromPipeline)]
[ValidatePattern('[A-Z]{3}')]
[string[]]$ThreeLetterWindowsLanguageName
)
$ThreeLetterWindowsLanguageName.ForEach{
OBJECT Codeunit 50003 ShareTable/RecordArray Test
{
OBJECT-PROPERTIES
{
Date=02-06-17;
Time=12:11:19;
Modified=Yes;
Version List=;
}
PROPERTIES