EulandaXtools — Funktionsreferenz
Sucht im Peppol Directory und gibt die Peppol Participant ID als Text zurück.
Get-PeppolIdFromParticipant [[-CountryCode] <string>] [-SearchText] <string> [[-DirectoryBaseUri]
<string>] [-All] [-OmitIso] [[-ResultPageCount] <int>] [[-ResultPageIndex] <int>]
[[-RetryCount] <int>] [[-RetryDelayMs] <int>] [-FailIfNotFound] [<CommonParameters>]Fragt das öffentliche Peppol Directory über /search/1.0/json per HTTP GET ab. Es wird mit q=
Standard-Ausgabeformat: "
Wenn -OmitIso gesetzt ist und das Scheme "iso6523-actorid-upis" lautet, wird nur der Value ausgegeben: Beispiel: "9915:test"
-CountryCode
Type: stringOptionaler zweistelliger Ländercode (z.B. DE, AT, BE).
-SearchText
Type: stringFreitext für die Directory-Suche (q).
-DirectoryBaseUri
Type: string
Default: 'https://directory.peppol.eu'Basis-URL des Directory. Standard: https://directory.peppol.eu
-All
Type: switchGibt alle gefundenen Participant IDs zurück (statt nur der ersten).
-OmitIso
Type: switchWenn gesetzt, wird für Participant IDs mit Scheme "iso6523-actorid-upis" das Präfix "iso6523-actorid-upis::" im Output weggelassen und nur der Value zurückgegeben.
-ResultPageCount
Type: int
Default: 20Anzahl Ergebnisse pro Seite (rpc). Standard 20.
-ResultPageIndex
Type: int
Default: 0Seitenindex (rpi, 0-basiert). Standard 0.
-RetryCount
Type: int
Default: 3Anzahl Wiederholungen bei HTTP 429. Standard 3.
-RetryDelayMs
Type: int
Default: 650Wartezeit zwischen Wiederholungen in Millisekunden. Standard 650.
-FailIfNotFound
Type: switchWenn gesetzt, wird bei 0 Treffern ein Fehler ausgelöst.
System.String# Erste gefundene Participant ID (mit Scheme) für "EULANDA Software GmbH" holen
Get-PeppolIdFromParticipant -SearchText 'EULANDA Software GmbH'# Erste gefundene Participant ID ohne "iso6523-actorid-upis::" holen (nur "9915:...")
Get-PeppolIdFromParticipant -CountryCode DE -SearchText 'EULANDA Software GmbH' -OmitIso# Alle IDs ohne "iso6523-actorid-upis::" holen
Get-PeppolIdFromParticipant -CountryCode DE -SearchText 'EULANDA Software GmbH' -All -OmitIso# Debug: die finale URL anzeigen
Get-PeppolIdFromParticipant -CountryCode DE -SearchText 'EULANDA Software GmbH' -Verbose