#-Begin-----------------------------------------------------------------
$User = "BCUSER"
$Password = Read-Host -Prompt "Passwort" -AsSecureString
$Cred = New-Object System.Management.Automation.PSCredential($User, $Password)
$System = "http://nsp.mysystem.de:8650/"
$TextSearch = "sap/bc/adt/repository/informationsystem/textsearch"
$SearchString = "?searchString=Record"
$Params = "&searchFromIndex=1&searchToIndex=10"
$RequestURI = $System + $TextSearch + $SearchString + $Params
[XML]$SearchResult = Invoke-RestMethod -Uri $RequestURI -Credential $Cred -Method Get
$Cnt = $SearchResult.textSearchResult.textSearchObjects.textSearchObject.Count
For ($i = 0; $i -lt $Cnt; $i++ ) {
$Obj = $SearchResult.textSearchResult.textSearchObjects.textSearchObject[$i]
Write-Host $Obj.adtMainObject.description " - " $Obj.adtMainObject.name
}
#-End-------------------------------------------------------------------
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 |