Skip to content

Commit 9c48f9a

Browse files
authored
fix appid.value (#3398)
Co-authored-by: freddydk <[email protected]>
1 parent 751a4d2 commit 9c48f9a

4 files changed

+7
-7
lines changed

AppHandling/Get-NavContainerAppInfo.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ try {
108108
}
109109
else {
110110
$inArgs += @{ "ServerInstance" = $ServerInstance }
111-
$apps = Get-NAVAppInfo @inArgs | Where-Object { (!$installedOnly) -or ($_.IsInstalled -eq $true) } | ForEach-Object { Get-NAVAppInfo -id $_.AppId.value -publisher $_.publisher -name $_.name -version $_.Version @inArgs }
111+
$apps = Get-NAVAppInfo @inArgs | Where-Object { (!$installedOnly) -or ($_.IsInstalled -eq $true) } | ForEach-Object { Get-NAVAppInfo -id "$($_.AppId)" -publisher $_.publisher -name $_.name -version $_.Version @inArgs }
112112
}
113113

114114
if ($sort -ne "None") {

AppHandling/PsTestFunctions.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ function Run-Tests {
699699
$property.SetAttribute("value", $extensionId)
700700
$JunitTestSuiteProperties.AppendChild($property) | Out-Null
701701

702-
$appname = "$(Get-NavAppInfo -ServerInstance $serverInstance | Where-Object { "$($_.AppId.Value)" -eq $extensionId } | ForEach-Object { $_.Name })"
702+
$appname = "$(Get-NavAppInfo -ServerInstance $serverInstance | Where-Object { "$($_.AppId)" -eq $extensionId } | ForEach-Object { $_.Name })"
703703
if ($appname) {
704704
$property = $JUnitDoc.CreateElement("property")
705705
$property.SetAttribute("name","appName")

AppHandling/Publish-NavContainerApp.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ try {
130130
if ($checkAlreadyInstalled) {
131131
# Get Installed apps (if UseDevEndpoint is specified, only get global apps)
132132
$installedApps = Get-BcContainerAppInfo -containerName $containerName -installedOnly | Where-Object { (-not $useDevEndpoint.IsPresent) -or ($_.Scope -eq 'Global') } | ForEach-Object {
133-
@{ "id" = $_.appId.value.ToString(); "publisher" = $_.publisher; "name" = $_.name; "version" = $_.Version }
133+
@{ "id" = "$($_.appId)"; "publisher" = $_.publisher; "name" = $_.name; "version" = $_.Version }
134134
}
135135
}
136136
}
@@ -143,8 +143,8 @@ try {
143143
# Get Installed apps (if UseDevEndpoint is specified, only get global apps)
144144
$installedApps = Invoke-ScriptInCloudBcContainer -authContext $bcAuthContext -containerId $environment -scriptblock {
145145
Get-NAVAppInfo -ServerInstance $serverInstance -TenantSpecificProperties -tenant 'default' | Where-Object { $_.IsInstalled -eq $true -and ((-not $useDevEndpoint.IsPresent) -or ($_.Scope -eq 'Global')) } | ForEach-Object {
146-
Get-NAVAppInfo -ServerInstance $serverInstance -TenantSpecificProperties -tenant 'default' -id $_.AppId.value -publisher $_.publisher -name $_.name -version $_.Version } | ForEach-Object {
147-
@{ "id" = $_.appId.value.ToString(); "publisher" = $_.publisher; "name" = $_.name; "version" = $_.Version }
146+
Get-NAVAppInfo -ServerInstance $serverInstance -TenantSpecificProperties -tenant 'default' -id "$($_.AppId)" -publisher $_.publisher -name $_.name -version $_.Version } | ForEach-Object {
147+
@{ "id" = "$($_.appId)"; "publisher" = $_.publisher; "name" = $_.name; "version" = $_.Version }
148148
}
149149
}
150150
}

NuGet/Publish-BcNuGetPackageToContainer.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ Function Publish-BcNuGetPackageToContainer {
6969
$isCloudBcContainer = isCloudBcContainer -authContext $bcAuthContext -containerId $environment
7070
if ($isCloudBcContainer) {
7171
$installedApps = @(Invoke-ScriptInCloudBcContainer -authContext $bcAuthContext -containerId $environment -scriptblock {
72-
Get-NAVAppInfo -ServerInstance $serverInstance -TenantSpecificProperties -tenant 'default' | Where-Object { $_.IsInstalled -eq $true } | ForEach-Object { Get-NAVAppInfo -ServerInstance $serverInstance -TenantSpecificProperties -tenant 'default' -id $_.AppId.value -publisher $_.publisher -name $_.name -version $_.Version }
73-
} | ForEach-Object { @{ "Publisher" = $_.Publisher; "Name" = $_.Name; "Id" = $_.AppId.value.ToString(); "Version" = $_.Version } } )
72+
Get-NAVAppInfo -ServerInstance $serverInstance -TenantSpecificProperties -tenant 'default' | Where-Object { $_.IsInstalled -eq $true } | ForEach-Object { Get-NAVAppInfo -ServerInstance $serverInstance -TenantSpecificProperties -tenant 'default' -id "$($_.AppId)" -publisher $_.publisher -name $_.name -version $_.Version }
73+
} | ForEach-Object { @{ "Publisher" = $_.Publisher; "Name" = $_.Name; "Id" = "$($_.AppId)"; "Version" = $_.Version } } )
7474
# Get Country and Platform from the container
7575
}
7676
else {

0 commit comments

Comments
 (0)