add script to convert URLs to elixForms format

This commit is contained in:
2026-05-26 16:01:45 +02:00
parent e116dff5cf
commit 292975031a
4 changed files with 126 additions and 8 deletions
+17
View File
@@ -0,0 +1,17 @@
[CmdletBinding()]
param(
[Parameter(Mandatory)][string]$AbsoluteUrl
)
$uri = [System.Uri]$AbsoluteUrl
Write-Host "Converting URL '$uri' to elixForms WS call format..."
Import-Module $(Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Definition) "extract-elx-module.psm1") -Force
$convertedUrl = Convert-UrlToElixAutocompleteFormat -AbsoluteUrl $uri
Write-Host "Converted URL:" -ForegroundColor Cyan
Write-Host "$convertedUrl" -ForegroundColor Cyan
Write-Host "URL converted successfully!" -ForegroundColor Green